Download the PHP package cleaniquecoders/laravel-contract without Composer
On this page you can find all versions of the php package cleaniquecoders/laravel-contract. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cleaniquecoders/laravel-contract
More information about cleaniquecoders/laravel-contract
Files in cleaniquecoders/laravel-contract
Package laravel-contract
Short Description Common Contracts for Laravel
License MIT
Homepage https://github.com/cleaniquecoders/laravel-contract
Informations about the package laravel-contract
Common Contracts for Laravel
A simple package to handle common contracts.
Installation
You can install the package via composer:
Usage
The command will generate the contract:
Available contracts in this package:
CleaniqueCoders/LaravelContract/Contracts/Api
This allow standard form of getting the API response structure. However, you don't need to use this if using Pagination.
CleaniqueCoders/LaravelContract/Contracts/Builder
This contract allow you to build objects more consistent. $wall->build()
, $door->build()
.
For your reference: Builder
CleaniqueCoders/LaravelContract/Contracts/Execute
Execute contract allow you to consistently call $object->execute()
. This contract usually use when we are triggering something to be execute after preparing the object.
CleaniqueCoders/LaravelContract/Contracts/Menu
Menu contract simpley return a list of menus that you can use to build your Sidebar, Navbar, etc.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Nasrul Hazim Bin Mohamad
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-contract with dependencies
spatie/laravel-package-tools Version ^1.14.0
illuminate/contracts Version ^9.0 | ^10.0 | ^11.0