Download the PHP package log1x/blade-filetype-icons without Composer
On this page you can find all versions of the php package log1x/blade-filetype-icons. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download log1x/blade-filetype-icons
More information about log1x/blade-filetype-icons
Files in log1x/blade-filetype-icons
Package blade-filetype-icons
Short Description A package to easily make use of dmhendricks/file-icon-vectors in your Laravel Blade views.
License MIT
Homepage https://github.com/log1x/blade-filetype-icons
Informations about the package blade-filetype-icons
Blade File Type Icons
A package to easily make use of file-icon-vectors by Daniel Hendricks in your Laravel Blade views.
This package focuses on the vivid
and square-o
variations of file-icon-vectors
as they are able to be made monochrome.
For a full list of available icons, see original repo.
Requirements
- PHP 8.0 or higher
- Laravel 9.0 or higher
Installation
Blade Icons
Blade File Type Icons uses Blade Icons under the hood. Please refer to the Blade Icons readme for additional functionality. We also recommend to enable icon caching with this library.
Configuration
Blade File Type Icons also offers the ability to use features from Blade Icons like default classes, default attributes, etc. If you'd like to configure these, publish the blade-filetype-icons.php
config file:
Usage
Icons can be used as self-closing Blade components which will be compiled to SVG icons:
You can also pass classes to your icon components:
And even use inline styles:
Or use the @svg
directive:
The square-o icons can be referenced like this:
Raw SVG Icons
If you want to use the raw SVG icons as assets, you can publish them using:
Then use them in your views like:
Bug Reports
If you discover a bug in Blade File Type Icons, please open an issue.
Contributing
Contributing whether it be through PRs, reporting an issue, or suggesting an idea is encouraged and appreciated.
License
Blade File Type Icons is provided under the MIT License.
All versions of blade-filetype-icons with dependencies
blade-ui-kit/blade-icons Version ^1.1
illuminate/support Version ^9.0|^10.0|^11.0