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
Laratone is a comprehensive Laravel package for managing color libraries and swatches in your applications. It provides an easy-to-use API for storing, retrieving, and managing color data, with built-in support for various color formats (HEX, RGB, CMYK, LAB) and popular color libraries.
Features
- 🎨 Multiple built-in color libraries (Pantone, GuangShun Thread, HC Twill)
- 🔄 Automatic color data caching for improved performance
- 📦 Easy color book management and seeding
- 🔍 Flexible API for color searching and filtering
- 🛠️ Simple integration with Laravel applications
- 📝 Support for custom color books and formats
Requirements
- PHP 8.3 or higher
- Laravel 11.x or greater
Installation
You can install the package via composer:
Publish Configuration and Migrations
Publish the configuration file:
Publish and run the migrations:
Configuration
The published config file (config/laratone.php
) contains the following options:
Usage
Seeding Color Books
Laratone comes with several pre-built color libraries:
ColorBookPlusSolidCoated
ColorBookPlusSolidCoated336NewColors
ColorBookMetallicCoated
ColorBookPlusMetallicCoated
GuangShunThreadColors
HCTwillColors
Seed All Color Books
Seed Specific Color Books
Import Custom Color Books
Example Color Book format:
API
Color Books
List all available color books:
Parameter | Required | Description | Default |
---|---|---|---|
sort | No | Sort by name (asc/desc) | asc |
Colors
Get colors from a specific color book:
Parameter | Required | Description | Default |
---|---|---|---|
sort | No | Sort by name (asc/desc) | asc |
limit | No | Limit number of results | - |
random | No | Randomize results | false |
Color Management
Laratone provides a simple API for managing colors programmatically:
Caching
Laratone automatically caches color book and color data to improve performance. The cache duration can be configured in the config file. To clear the cache:
Testing
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 >=11.0