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

1.0.1 2021-05-03 22:17 UTC

This package is auto-updated.

Last update: 2024-05-04 04:44:22 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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.