Navigation Menu

Skip to content


Repository files navigation

Auth0 PHP Test

This "app" was made to explore, test, and develop the Auth0 PHP SDK.


This project uses Composer to autoload Auth0 and the classes it uses. Clone this repo somewhere and cd into it. Once that is complete, install Composer (if installed globally):

composer install

Otherwise, download Composer locally and run:

php composer.phar install

Copy the example.env file to .env and replace the values there with what's on your Application settings screen in the Auth0 dashboard (click Create Application if you're starting from scratch).

Now clone the Auth0 repo and composer install there:

> git clone auth0
> cd auth0
> composer install 
> cd ..

Now, run the built-in PHP server and you're ready to go:

php -S localhost:5000

Visit http://localhost:5000 in your browser and you should see something like this:


Everything is loaded up in bootstrap.php and output in index.php. The /classes/ directory contains simple examples of how to use the Management API and you'll see those output at the bottom of index.php.

All the code samples in the SDK README are here in files prefixed with readme- so you can run and modify them yourself.


No releases published


No packages published