Download the PHP package daikazu/laratone without Composer
On this page you can find all versions of the php package daikazu/laratone. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download daikazu/laratone
More information about daikazu/laratone
Files in daikazu/laratone
Package laratone
Short Description Simple API for managing color libraries in you Laravel application.
License MIT
Homepage https://github.com/daikazu/laratone
Informations about the package laratone
Laratone
Laravel Color Library Package
This is a simple package to manage and seed various color libraries I find my self using all time. You can use the defaults or simple add your own. Laratone provides a few routes to allow simple access via url.
Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
This is the contents of the published config file:
You can change the table prefix name in the config to what ever you like.
Usage
Seed with default Color Books
Use the Laratone artisan command to seed Color Books to your database.
The following Color Books have been made available for you;
PantonePlusSolidCoated
PantonePlusSolidCoated336NewColors
PantoneMetallicCoated
PantonePlusMetallicCoated
GuangShunThreadColors
HCTwillColors
Seed all Color Books in Package
Seed specific Color Books in Package
Seed your own Color Books
Example Color Book format
API
Color Books
URL Parameter | Required | Description | Default |
---|---|---|---|
sort | false | Sort Color Book By Name asc or desc |
asc |
Example:
Colors
Return colors from ColorBook based on ColorBook slug ie.pantone-plus-solid-coated
URL Parameter | Required | Description | Default | |
---|---|---|---|---|
sort | false | Sort Colors By Name asc or desc |
asc | |
limit | false | Limit number of colors returned | - | |
random | false | Set to true to randomize colors (overrides sort ) |
false |
Example:
TODO
- write tests (If someone would like to help with this please send a PR)
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
- Mike Wall
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laratone with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.0