php-jwt icon indicating copy to clipboard operation
php-jwt copied to clipboard

How about some documentation?

Open marcospgp opened this issue 11 years ago • 9 comments

I feel this library could use some documentation, especially some mention that if the token verification fails, an exception will be thrown. Also an example of code where a try catch block is used to decode a token would help.

Thanks!

marcospgp avatar Jul 01 '15 15:07 marcospgp

+1

toddmcbrearty avatar Aug 11 '15 17:08 toddmcbrearty

:+1: Great library by the way, very helpful in my latest project

peterholcomb avatar Aug 11 '15 17:08 peterholcomb

I generally agree but if anyone really does need some examples the tests aren't a bad place to start: https://github.com/firebase/php-jwt/blob/master/tests/JWTTest.php

There's plenty of documentation on how to catch an exception already out there, and the source code is relatively easy to look at and understand what exceptions are thrown.

dperjar avatar Sep 15 '15 21:09 dperjar

+1

rutwick avatar Oct 13 '15 13:10 rutwick

+5

spacebiscuit avatar Nov 10 '15 16:11 spacebiscuit

+10

xerardoo avatar Mar 04 '16 17:03 xerardoo

+1

sonicwong avatar Apr 21 '16 08:04 sonicwong

+1 https://medium.com/@craftsmancoding/wtfm-dbbec02eb172#.nqpu6uivi

fireproofsocks avatar Sep 27 '16 20:09 fireproofsocks

I see exception handling example is added to the readme itself and the issue is really old. Closing this issue. Thank you for the discussion.

ajupazhamayil avatar May 14 '23 20:05 ajupazhamayil