sinemacula/laravel-repositories
最新稳定版本:v1.0.2
Composer 安装命令:
composer require sinemacula/laravel-repositories
包简介
Provides the repository data pattern to Laravel applications
README 文档
README
This Laravel package offers a streamlined repository pattern implementation with criteria-based query filtering, optimized for elegant and efficient manipulation of Eloquent models. It simplifies the robust capabilities of the original l5-repositories, focusing on the features most essential and frequently used, given that the l5-repositories project is no longer maintained.
A big thanks to the creators of andersao/l5-repository for their pioneering work, which heavily inspired this project. Our package aims to continue in that spirit, tailored for today's Laravel applications.
Features
- Clean Model Architecture: Implements the data repository pattern to abstract data logic away from the models, ensuring that your models stay clean and focused solely on their intended functionalities.
- Flexible Data Retrieval: Utilizes a robust system of criteria and scopes that allow for precise and flexible retrieval of data, enabling developers to easily implement complex query logic without cluttering the model layer.
- Criteria-Based Filtering: Offers the ability to dynamically add, remove, or modify query criteria on-the-fly, providing powerful and reusable components for custom query construction.
Installation
To install the Laravel API Repositories package, run the following command in your project directory:
composer require sinemacula/laravel-repositories
Usage
Coming soon...
Contributing
Contributions are welcome and will be fully credited. We accept contributions via pull requests on GitHub.
Security
If you discover any security related issues, please email instead of using the issue tracker.
License
The Laravel Repositories repository is open-sourced software licensed under the Apache License, Version 2.0.
统计信息
- 总下载量: 12.99k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2024-04-17