This PHP code sample demonstrates how to implement Role-Based Access Control (RBAC) in Lumen API servers using Auth0.
This code sample is part of the "Auth0 Developer Resources", a place where you can explore the authentication and authorization features of the Auth0 Identity Platform.
Visit the "Lumen/PHP Code Sample: Role-Based Access Control For Basic APIs" page for instructions on how to configure and run this code sample and how to integrate it with a Single-Page Application (SPA) of your choice.
Auth0 is a flexible drop-in solution to add authentication and authorization services to your applications. Your team and organization can avoid the cost, time, and risk that come with building your own solution to authenticate and authorize users. We offer tons of guidance and SDKs for you to get started and integrate Auth0 into your stack easily.