hitechnix / laratrust
PHP 8.0+ fully-featured authentication & authorization system
Requires
- php: ^8.0
- hitechnix/support: ^7.0
Requires (Dev)
- hitechnix/php-cs-fixer: ^3.0
- illuminate/cookie: ^10.0
- illuminate/database: ^10.0
- illuminate/events: ^10.0
- illuminate/http: ^10.0
- illuminate/session: ^10.0
- mockery/mockery: ^1.0
- phpunit/phpunit: ^9.0
Suggests
- illuminate/database: By default, Laratrust utilizes the powerful Illuminate database layer.
- illuminate/events: To hook into various events across Laratrust, we recommend using Illuminate's event dispatcher.
- symfony/http-foundation: Required for native implementations.
This package is not auto-updated.
Last update: 2025-03-10 19:21:42 UTC
README
A modern and framework-agnostic authorization and authentication package featuring roles, permissions, custom hashing algorithms and additional security features.
The package follows the FIG standard PSR-4 to ensure a high level of interoperability between shared PHP code.
📦 Requirements
The package requires PHP 8.0+ and comes bundled with a Laravel 10 Facade and a Service Provider to simplify the optional framework integration.
📋 Features
- Authentication.
- Authorization.
- Registration.
- Users & Roles Management.
- Driver based permission system.
- Flexible activation scenarios.
- Reminders (password reset).
- Inter-account throttling with DDoS protection.
- Custom hashing strategies.
- Multiple sessions.
- Multiple login columns.
- Integration with Laravel.
- Allow use of multiple ORM implementations.
- Native facade for easy usage outside Laravel.
- Interface driven (your own implementations at will).
🔧 Installation
Install the package with the below command:
composer require hitechnix/laratrust
📝 Usage
Reader-friendly documentation can be found here.
📨 Message
I hope you find this useful. If using the package, but you're stuck? Found a bug? Have a question or suggestion for improving this package? Feel free to create an issue on GitHub, we'll try to address it as soon as possible.
🔐 Security
If you discover any security-related issues, please email support@hitechnix.com instead of using the issue tracker.
📖 License
This software is released under the BSD 3-Clause License. Please see the LICENSE file or https://opensource.hitechnix.com/LICENSE.txt for more information.
✨ Contributors
Thanks goes to these wonderful people (emoji key):
Son Tran Thanh 🔧 🚇 🚧 💻 📖 👀 |
This project follows the all-contributors specification. Contributions of any kind welcome!