- 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/sdk
See tutorial for a quick start.
See API reference for more details.
See samples directory for example usages.
composer dev
This script will start a dev server at http://localhost:5000
and use samples/index.php
as the entry point.
composer test
Prerequisite
- A
phpDocumentor.phar
in the project root (can be downloaded from phpDocumentor). - Command
prettier
is available in the shell (an opinionated code formatter), which can be installed withnpm install -g prettier
.
composer docs
This command will generate the API docs in docs/api
folder and format the files.