kinde-oss/kinde-auth-php

Kinde PHP SDK for authentication


README

The Kinde SDK for PHP.

You can also use the PHP starter kit here.

PRs Welcome Kinde Docs Kinde Community

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.