creode / laravel-mime-type-icons
Base module which is used for the DAM to create assets.
1.2.0
2024-02-28 14:35 UTC
Requires
- php: ^8.1
README
Installation
You can install the package via composer:
composer require creode/laravel-mime-type-icons
THe SVG assets are published to the public directory when composer update has been run. However you can publish them manually with:
php artisan vendor:publish --tag="laravel-assets"
You can publish the config file with:
php artisan vendor:publish --tag="laravel-mime-type-icon-config"
This is the contents of the published config file:
// Options for icon-style are 'square-o' and 'classic', 'vivid' or 'high-contrast'. // Default is 'square-o'. return [ 'style' => env('LARAVEL_MIME_TYPE_ICON_STYLE', 'square-o') ];
Usage
use Creode\LaravelMimeTypeIcons\Services\LaravelMimeTypeIconsService; return LaravelMimeTypeIconsService::getIcon($value);
Changelog
Please see CHANGELOG for more information on what has changed recently.
## Attributions/Legal Bit Icon SVG's for this library were provided by the following repository: https://github.com/dmhendricks/file-icon-vectors. We have just modified the filenames to suit our needs.
Credits
License
The MIT License (MIT). Please see License File for more information.