A production-ready Laravel package for managing API integrations and OAuth applications. This package provides a complete integration management system with multi-tenant support.
- PHP 8.2 or higher
- Laravel 12.x
- MySQL 8.0+ / PostgreSQL 13+ / SQLite 3.35+
- Create and manage API integrations (OAuth clients)
- Auto-generated Client ID and Client Secret
- Multiple redirect URIs support
- Status management (active/inactive)
- Multi-tenant ready
- Laravel Passport/Sanctum authentication support
- Comprehensive API endpoints
- Policy-based authorization
- PSR-4 compliant
- Full test coverage
Install the package via Composer:
composer require litepie/integrationPublish the configuration and migrations:
php artisan vendor:publish --provider="Litepie\Integration\IntegrationServiceProvider"Run the migrations:
php artisan migrateThe package publishes a configuration file to config/integration.php where you can customize:
- Database table names
- Middleware settings
- Authentication guards
- Default settings
use Litepie\Integration\Models\Integration;
$integration = Integration::create([
'name' => 'My API Integration',
'description' => 'Integration for my application',
'redirect_uris' => ['https://myapp.com/callback'],
'status' => 'active',
'user_id' => auth()->id(),
]);The package provides RESTful API endpoints:
GET /api/integrations- List integrationsPOST /api/integrations- Create integrationGET /api/integrations/{id}- Show integrationPUT /api/integrations/{id}- Update integrationDELETE /api/integrations/{id}- Delete integration
The package automatically handles multi-tenancy by associating integrations with the authenticated user.
Run the test suite:
vendor/bin/phpunitThe MIT License (MIT). Please see License File for more information.