juniorfontenele/laravel-contracts
Composer 安装命令:
composer require juniorfontenele/laravel-contracts
包简介
Set of Laravel Contracts
README 文档
README
A set of reusable contracts (interfaces) for Laravel projects, designed to standardize and simplify the implementation of common patterns such as validation, filtering, and data transformation.
Features
- Validation Contracts: Define how data should be validated in a consistent way.
- Filter Contracts: Standardize query filtering logic.
- Data Contracts: Ensure data objects can be easily converted to and from arrays.
Installation
composer require juniorfontenele/laravel-contracts
Usage
Implement the provided interfaces in your classes to enforce consistent structure and behavior.
Example:
use JuniorFontenele\LaravelContracts\Validation\Validatable; class MyRequest implements Validatable { // Implement required methods: validate(), rules(), messages(), attributes() }
License
MIT License. See LICENSE for details.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-29