logto/sdk

Logto PHP SDK.

Maintainers

Details

github.com/logto-io/php

Source

Issues

Fund package maintenance!
logto-io

v0.2.1 2024-04-27 10:57 UTC

This package is not auto-updated.

Last update: 2024-04-27 11:01:32 UTC


README

Logto Packagist Version Packagist PHP Version Packagist License Discord

Prerequisites

  • 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.

Installation

composer require logto/sdk

Tutorial

See tutorial for a quick start.

API reference

See API reference for more details.

Sample code

See samples directory for example usages.

Development scripts

Dev

composer dev

This script will start a dev server at http://localhost:5000 and use samples/index.php as the entry point.

Test

composer test

Update API docs

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 with npm install -g prettier.
composer docs

This command will generate the API docs in docs/api folder and format the files.

Resources