{"id":18612975,"url":"https://github.com/logto-io/php","last_synced_at":"2025-07-29T23:11:36.599Z","repository":{"id":186917964,"uuid":"675980096","full_name":"logto-io/php","owner":"logto-io","description":"Build authentication and authorization with Logto PHP SDK.","archived":false,"fork":false,"pushed_at":"2025-02-07T09:03:35.000Z","size":108,"stargazers_count":5,"open_issues_count":3,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-25T06:23:01.748Z","etag":null,"topics":["authentication","authorization","jwt","laravel","logto","mfa","multi-tenant","oauth2","oidc","php","saml","sso"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/logto-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"logto-io"}},"created_at":"2023-08-08T06:56:28.000Z","updated_at":"2025-02-20T01:02:15.000Z","dependencies_parsed_at":"2023-11-28T09:28:37.777Z","dependency_job_id":"927bee48-c95e-4eb7-846f-cdf64573eb18","html_url":"https://github.com/logto-io/php","commit_stats":null,"previous_names":["logto-io/php"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logto-io%2Fphp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logto-io%2Fphp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logto-io%2Fphp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logto-io%2Fphp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/logto-io","download_url":"https://codeload.github.com/logto-io/php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248243473,"owners_count":21071054,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","authorization","jwt","laravel","logto","mfa","multi-tenant","oauth2","oidc","php","saml","sso"],"created_at":"2024-11-07T03:19:19.467Z","updated_at":"2025-04-10T23:31:38.543Z","avatar_url":"https://github.com/logto-io.png","language":"PHP","funding_links":["https://github.com/sponsors/logto-io"],"categories":[],"sub_categories":[],"readme":"# Logto PHP SDK\n\n[![Logto](https://img.shields.io/badge/for-logto-7958ff)][Website]\n[![Packagist Version](https://img.shields.io/packagist/v/logto/sdk)][Packagist]\n[![Packagist PHP Version](https://img.shields.io/packagist/dependency-v/logto/sdk/php)][Packagist]\n[![Packagist License](https://img.shields.io/packagist/l/logto/sdk)](https://github.com/logto-io/php)\n[![Discord](https://img.shields.io/discord/965845662535147551?color=5865f2\u0026logo=discord\u0026label=discord)][Discord]\n\n## Prerequisites\n\n- PHP 8.1 or higher\n- A [Logto Cloud](https://logto.io/) account or a self-hosted Logto\n- A Logto traditional web application created\n\nIf you don't have the Logto application created, please follow the [⚡ Get started](https://docs.logto.io/docs/tutorials/get-started/) guide to create one.\n\n## Installation\n\n```bash\ncomposer require logto/sdk\n```\n\n## Tutorial\n\nSee [tutorial](./docs/tutorial.md) for a quick start.\n\n## API reference\n\nSee [API reference](./docs/api/index.md) for more details.\n\n## Sample code\n\nSee [samples](./samples/) directory for example usages.\n\n## Development scripts\n\n### Dev\n\n```bash\ncomposer dev\n```\n\nThis script will start a dev server at `http://localhost:5000` and use `samples/index.php` as the entry point.\n\n### Test\n\n```bash\ncomposer test\n```\n\n### Update API docs\n\n**Prerequisite**\n\n- A `phpDocumentor.phar` in the project root (can be downloaded from [phpDocumentor](https://docs.phpdoc.org/guide/getting-started/installing.html)).\n- Command `prettier` is available in the shell (an opinionated [code formatter](https://prettier.io/)), which can be installed with `npm install -g prettier`.\n\n```bash\ncomposer docs\n```\n\nThis command will generate the API docs in `docs/api` folder and format the files.\n\n## Resources\n\n- [Logto website][Website]\n- [Logto documentation](https://docs.logto.io/)\n- [Join Discord][Discord]\n\n[Website]: https://logto.io/\n[Packagist]: https://packagist.org/packages/logto/sdk\n[Discord]: https://discord.gg/vRvwuwgpVX\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogto-io%2Fphp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogto-io%2Fphp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogto-io%2Fphp/lists"}