- PHP 8.1 or higher
- A Logto Cloud account or a self-hosted Logto
- A Logto traditional web application created
If you don't have the Logto application created, please follow the ⚡ Get started guide to create one.
composer require logto/sdkSee tutorial for a quick start.
See API reference for more details.
See samples directory for example usages.
composer devThis script will start a dev server at http://localhost:5000 and use samples/index.php as the entry point.
composer testPrerequisite
- A
phpDocumentor.pharin the project root (can be downloaded from phpDocumentor). - Command
prettieris available in the shell (an opinionated code formatter), which can be installed withnpm install -g prettier.
composer docsThis command will generate the API docs in docs/api folder and format the files.