tengliyun / laravel-interceptor
A lightweight AOP interceptor for Laravel.
Requires
- php: ^8.0
Requires (Dev)
- code-lts/doctum: ^5.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-09-16 04:51:21 UTC
README
Laravel Interceptor
A lightweight AOP interceptor for Laravel.
Laravel Interceptor is a lightweight interceptor/AOP component for Laravel.
Without modifying your business code, you can implement cross-cutting concerns such as logging, authorization, caching, transactions, monitoring, auditing, parameter validation, and result handling—allowing business classes to focus only on core business logic. It is ideal for projects that want to enhance Laravel methods in a non-invasive way, especially existing projects that need a unified approach to handling logic before and after methods.
Table of Contents
Roadmap
- interceptor:compile
- proxy
- hook
- event
See the GitHub Open Issues for a full list of proposed features (and known issues).
Installation
You can install the package via Composer:
composer require tengliyun/laravel-interceptor
Usage
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Contributors
Thanks goes to these wonderful people:
Contributions of any kind are welcome!
License
Distributed under the MIT License (MIT). Please see License File for more information.