kinde-oss / kinde-auth-php
Kinde PHP SDK for authentication
Requires
- php: ^7.4 || ^8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- firebase/php-jwt: ^6.10
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
- dev-master
- 2.1.1
- 2.0.1
- 2.0.0
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.1
- 1.2.0
- 0.0.3
- 0.0.2
- 0.0.1
- dev-david/update/composer_version
- dev-david/update/version_2
- dev-david/fix/m2m_conflict
- dev-david/update/jwks
- dev-david/update/sessions
- dev-david/fix/storage_expiry_error
- dev-david/update/version
- dev-david/fix/jwt_decoding
- dev-revert-19-modify/update-sdk-constructor-and-readme
- dev-fix/cookie-options
- dev-feat/add-more-url-params
- dev-david/update/additional_params
- dev-david/update/cookies
- dev-rai/set-version-to-121
- dev-rai/update-version
- dev-rai/update-composer-json
- dev-rai/update-composer-file
- dev-rai/readme-update
This package is not auto-updated.
Last update: 2025-07-11 11:17:16 UTC
README
The Kinde SDK for PHP.
You can also use the PHP starter kit here.
Features
JWKS Caching
The SDK now includes intelligent JWKS (JSON Web Key Set) caching to improve performance:
- Reduced Network Requests: JWKS is cached for 1 hour by default
- Automatic Fallback: If cached keys fail, automatically refresh from server
- Better Performance: Faster token validation with no network latency for cached JWKS
- Backward Compatible: No code changes required for existing implementations
For detailed information about JWKS caching, see JWKS_CACHING.md.
Documentation
For details on integrating this SDK into your project, head over to the Kinde docs and see the PHP SDK doc 👍🏼.
Development
Prerequisites
To generate the API code, you'll need:
- PHP 7.4 or higher
- Composer
- Node.js (for API generation)
Installation
Install all dependencies:
composer install npm install
This will automatically:
- Install PHP dependencies via Composer
- Install Node.js dependencies via npm
Generating API Code
The API code is generated from the Kinde OpenAPI specification. To regenerate the API code:
composer generate-api
This will:
- Remove the existing API and Model directories
- Use the installed OpenAPI Generator
- Download the latest OpenAPI spec from Kinde
- Generate new API code
- Update the autoloader
- Clean up temporary files
Publishing
The core team handles publishing.
Contributing
Please refer to Kinde's contributing guidelines.
License
If you need help connecting to Kinde, please contact us at support@kinde.com. By contributing to Kinde, you agree that your contributions will be licensed under its MIT License.