# Where i can find a simple example of php-jwt auth?

**URL:** <https://community.auth0.com/t/where-i-can-find-a-simple-example-of-php-jwt-auth/72450>\
**Category:** JWT.io\
**Created:** [November 1, 2021, 5:15pm UTC](https://community.auth0.com/t/where-i-can-find-a-simple-example-of-php-jwt-auth/72450 "2021-11-01T17:15:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![allsportvideomavpa](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/allsportvideomavpa/32/26739_2.png) [@allsportvideomavpa](https://community.auth0.com/u/allsportvideomavpa)\
**Post date:** [November 1, 2021, 5:15pm UTC](https://community.auth0.com/t/where-i-can-find-a-simple-example-of-php-jwt-auth/72450/1 "2021-11-01T17:15:40Z")

</div>

Hi there!

I have just installed PHP-JWT library from [GitHub - firebase/php-jwt: PHP package for JWT](https://github.com/firebase/php-jwt). There i found only encrypting/decrypting examples, without sending data from forms and authorising with generating tokens. Please can somebody share a link to a simple php example, where some data is sending from html form to a server, than these data is checked, tokens are generated, and then authorised user can use just tokens for surfing a site. Sorry for maybe stupid question

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [November 5, 2021, 12:08am UTC](https://community.auth0.com/t/where-i-can-find-a-simple-example-of-php-jwt-auth/72450/2 "2021-11-05T00:08:24Z")

</div>

Hi @allsportvideomavpa,

Welcome to the Auth0 Community!

I understand that you are looking for a PHP example.

First, have you taken a look at our [Auth0 PHP API SDK Quickstart](https://auth0.com/docs/quickstart/backend/php)?

This Quickstart should provide a skeleton for integrating Auth0 with a PHP backend API.

Please let me know if you have further questions.

Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 6, 2021, 11:40pm UTC](https://community.auth0.com/t/where-i-can-find-a-simple-example-of-php-jwt-auth/72450/4 "2021-12-06T23:40:41Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
