owenvoke / blade-entypo
A package to easily make use of Entypo in your Laravel Blade views
Fund package maintenance!
owenvoke
ecologi.com/owenvoke?gift-trees
Installs: 41 178
Dependents: 0
Suggesters: 1
Security: 0
Stars: 7
Watchers: 4
Forks: 2
Open Issues: 0
Requires
- php: ^8.1
- blade-ui-kit/blade-icons: ^1.5
- illuminate/support: ^10.0|^11.0
- thecodingmachine/safe: ^2.5
Requires (Dev)
- laravel/pint: ^1.15
- orchestra/testbench: ^8.5|^9.0
- pestphp/pest: ^2.34
- phpstan/phpstan: ^1.10
- symfony/var-dumper: ^6.4|^7.0
- thecodingmachine/phpstan-safe-rule: ^1.2
README
A package to easily make use of Entypo in your Laravel Blade views.
For a full list of available icons see the SVG directory.
Documentation for older versions
You are reading the documentation for 2.x
.
If you're using Laravel 8 or below, please see the docs for 1.x.
Please see the upgrade guide for information on how to upgrade to the latest version.
Requirements
- PHP 8.1 or higher
- Laravel 10.x or higher
Install
Via Composer
composer require owenvoke/blade-entypo
Configuration
Blade Entypo 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-entypo.php
config file:
php artisan vendor:publish --tag=blade-entypo-config
Usage
Icons can be used a self-closing Blade components which will be compiled to SVG icons:
<x-entypo-cloud/>
You can also pass classes to your icon components:
<x-entypo-cloud class="w-6 h-6 text-gray-500"/>
And even use inline styles:
<x-entypo-cloud style="color: #555"/>
Raw SVG Icons
If you want to use the raw SVG icons as assets, you can publish them using:
php artisan vendor:publish --tag=blade-entypo --force
Then use them in your views like:
<img src="{{ asset('vendor/blade-entypo/cloud.svg') }}" width="10" height="10"/>
Blade Icons
Blade Entypo uses Blade Icons under the hood. Please refer to the Blade Icons readme for additional functionality.
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
composer test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email security@voke.dev instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Treeware
You're free to use this package, but if it makes it to your production environment you are required to buy the world a tree.
It’s now common knowledge that one of the best tools to tackle the climate crisis and keep our temperatures from rising above 1.5C is to plant trees. If you support this package and contribute to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.
You can buy trees here.
Read more about Treeware at treeware.earth.