cline / keychain
Stripe-style typed API tokens with groups, environments, and audit logging for Laravel
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/cline/keychain
Requires
- php: ^8.5.0
- cline/lineage: ^1.1
- cline/morpheus: ^1.0.1
- illuminate/auth: ^11.0 || ^12.0
- illuminate/contracts: ^11.0 || ^12.0
- illuminate/database: ^11.0 || ^12.0
- illuminate/events: ^11.0 || ^12.0
- illuminate/http: ^11.0 || ^12.0
- illuminate/support: ^11.0 || ^12.0
- spatie/laravel-package-tools: ^1.92.7
Requires (Dev)
- cline/php-cs-fixer: ^1.2.1
- driftingly/rector-laravel: ^2.1.3
- ergebnis/composer-normalize: ^2.48.2
- laravel/pint: ^1.26.0
- mockery/mockery: ^1.6.12
- orchestra/testbench: ^10.8
- pestphp/pest: ^4.1.5
- pestphp/pest-plugin-laravel: ^4.0
- pestphp/pest-plugin-type-coverage: ^4.0.3
- phpstan/phpstan: ^2.1.32
- rector/rector: ^2.2.8
- spatie/laravel-activitylog: ^4.10.2
- symfony/var-dumper: ^7.3.5
README
Stripe-style typed API tokens with groups, environments, and audit logging for Laravel. Features conductor-based API, token rotation, revocation strategies, and seamless Sanctum integration.
Requirements
Requires PHP 8.4+ and Laravel 11+
Installation
composer require cline/keychain
Documentation
- Getting Started - Installation, configuration, and first steps
- Basic Usage - Creating, validating, and managing tokens
- Authentication - Integrating with Laravel authentication
- Custom Token Types - Defining typed tokens with abilities
- Token Metadata - Attaching and querying token metadata
- Derived Keys - Hierarchical token derivation for resellers
- Revocation & Rotation - Token lifecycle management
- IP & Domain Restrictions - Network-based access control
- Rate Limiting - Throttling token usage
- Usage Tracking - Monitoring token activity
- Audit Logging - Recording token events
- Token Generators - Custom token generation strategies
Change log
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.
Credits
License
The MIT License. Please see License File for more information.