adzchappers / iconicapp-for-laravel
Laravel Blade files for the wonderful iconic.app icon set
Fund package maintenance!
Adz Chappers
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Blade
Requires
- php: ^7.4|^8.0
- illuminate/support: ~7|~8
Requires (Dev)
- brianium/paratest: ^6.2
- nunomaduro/collision: ^5.3
- orchestra/testbench: ^6.15
- phpunit/phpunit: ^9.3
- vimeo/psalm: ^4.4
This package is auto-updated.
Last update: 2025-01-04 06:12:50 UTC
README
A Laravel package for easy use of the wonderful iconic.app icon set in blade, svg, or png.
Requirements
- PHP 7.4 or higher
- Laravel 7.0 or higher
Installation
You can install the package via composer, this will give you access to the blade components:
composer require adzchappers/iconicapp-for-laravel
If you want to use the SVG or PNG files directly, you'll need to publis them directly.
All Files
php artisan vendor:publish --provider="AdzChappers\IconicappForLaravel\ServiceProvider" --force
SVG Files
php artisan vendor:publish --provider="AdzChappers\IconicappForLaravel\ServiceProvider" --tag=iconic-svg --force
All PNG Files
php artisan vendor:publish --provider="AdzChappers\IconicappForLaravel\ServiceProvider" --tag=iconic-png --force
Black PNG Files
php artisan vendor:publish --provider="AdzChappers\IconicappForLaravel\ServiceProvider" --tag=iconic-png-black --force
White PNG Files
php artisan vendor:publish --provider="AdzChappers\IconicappForLaravel\ServiceProvider" --tag=iconic-png-white --force
Updating
General steps for every update:
- Run
php artisan view:clear
- If you published the raw icons run one of the above installations commands, eg
php artisan vendor:publish --provider="AdzChappers\IconicappForLaravel\ServiceProvider" --force
Usage
Iconic icons can be used with a self-closing Blade component, which will be compiled to an SVG:
<x-iconic-announcement />
You can also pass a class, style, or stroke color (any or all) into the component:
<x-iconic-announcement class="w-6 h-6" style="margin-bottom: 10px" stroke="#555"/>
The icons can also be used in their raw format (svg, or png)
<img src="{{ asset('vendor/iconic/svg/announcement.svg') }}" width="24" height="24"/> <img src="{{ asset('vendor/iconic/png/white/announcement.png') }}" width="24" height="24"/>
Testing
composer test
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
License
The MIT License (MIT). Please see License File for more information.