• Stars
    star
    117
  • Rank 301,828 (Top 6 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A package to easily make use of Font Awesome in your Laravel Blade views.

Blade Font Awesome

Latest Version on Packagist Software License Build Status Static Analysis Total Downloads Buy us a tree

A package to easily make use of Font Awesome 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.0 or higher
  • Laravel 9.x or higher

Install

Via Composer

composer require owenvoke/blade-fontawesome

Configuration

Blade Font Awesome 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-fontawesome.php config file:

php artisan vendor:publish --tag=blade-fontawesome-config

Usage

Icons can be used a self-closing Blade components which will be compiled to SVG icons:

<x-fas-cloud/>

You can also pass classes to your icon components:

<x-fas-cloud class="w-6 h-6 text-gray-500"/>

And even use inline styles:

<x-fas-cloud style="color: #555"/>

Icon Sets

Note: These are default prefixes for the specified icon sets, these can all be configured in the config/blade-fontawesome.php file.

Free Icon Sets

  • Brands (fab)
  • Regular (far)
  • Solid (fas)

Pro Icon Sets

  • Duotone (fad)
  • Light (fal)
  • Thin (fat)
  • Sharp (fash)

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-fontawesome --force

Then use them in your views like:

<img src="{{ asset('vendor/blade-fontawesome/solid/cloud.svg') }}" width="10" height="10"/>

Font Awesome Pro

Blade Font Awesome supports pro icons using npm for downloads.

To use this, install Font Awesome Pro using npm i --save @fortawesome/fontawesome-pro, and then run the following Artisan command to add the icons to your resources path.

php artisan blade-fontawesome:sync-icons --pro

Blade Font Awesome will then automatically detect and use the pro icons under the resources/icons/blade-fontawesome path.

Blade Icons

Blade Font Awesome 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 [email protected] 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.

More Repositories

1

youtube-dl-php

A quick and easy YouTube downloader/parser written in PHP.
PHP
51
star
2

laravel-zero-docker

A Laravel Zero command to generate a Dockerfile using Box
PHP
26
star
3

opensea-php

An object oriented PHP wrapper for the OpenSea API
PHP
15
star
4

skeleton-php

A skeleton repository for Composer/PHP packages.
PHP
14
star
5

laravel-dashboard-cloudflare-stats-tile

A tile for Laravel Dashboard that displays statistics from Cloudflare
PHP
11
star
6

kat-revive

KatRevive is a project to allow revival of the Kickass Torrents API dumps.
PHP
10
star
7

torrent-php

A set of torrent management classes with support for Torrent v2. (WIP)
PHP
9
star
8

quoter-zsh

A ZSH plugin for displaying random quotes when opening a terminal.
Shell
8
star
9

ecologi-php

An object oriented PHP wrapper for the Ecologi API
PHP
7
star
10

gh-gpg-key

Manage GPG keys registered with your GitHub account
Shell
6
star
11

blade-entypo

A package to easily make use of Entypo in your Laravel Blade views.
PHP
6
star
12

laravel-dashboard-google-fit-tile

A tile for Laravel Dashboard that displays statistics from Google Fit
PHP
6
star
13

cachent

A secure, open source torrent cache (rewriting).
PHP
6
star
14

torrent-parser-php

A collection of parsers for various torrent RSS/JSON feeds.
PHP
6
star
15

dht-search

A collection of tools for searching DHT via PHP.
PHP
5
star
16

devrant-php

A simple PHP wrapper for utilising the devRant api.
PHP
5
star
17

spoonacularapi

The spoonacular Nutrition, Recipe, and Food API allows you to access over 360,000 recipes and 80,000 food products.
PHP
5
star
18

composer-action

GitHub Action for interacting with Composer
Dockerfile
5
star
19

homebrew-tap

A custom tap for Homebrew.
Ruby
4
star
20

mnemonics-php

A mnemonics generator for PHP 7.4+
PHP
4
star
21

arionum-php

An API wrapper for the Arionum cryptocurrency node.
PHP
4
star
22

vidox

A simple video hosting script using only 1 file.
PHP
3
star
23

poap-php

An object oriented PHP wrapper for the POAP API
PHP
3
star
24

laravel-dashboard-pihole-tile

A tile for Laravel Dashboard that displays statistics from Pi-hole
PHP
3
star
25

yify-torrents-backup

A basic backup of YIFY torrents.
PHP
3
star
26

wwrg-torrents-backup

A basic backup of WWRG torrents.
PHP
3
star
27

phpunit-action

GitHub Action for interacting with PHPUnit
Dockerfile
3
star
28

trello-php

A simple PHP wrapper for utilising the Trello api.
PHP
3
star
29

arionum-cli

A PHP-based command line wallet for Arionum.
PHP
3
star
30

dir-sync

A folder list sync between Server and Client (designed for use with a Plex environment)
PHP
3
star
31

self-signed-ssl-scripts

A set of scripts for generating self-signed SSL certificates.
Shell
3
star
32

socialite-unstoppable-domains

An Unstoppable Domains provider for Laravel Socialite
PHP
3
star
33

arionum-api-old

An API provider for the Arionum cryptocurrency.
PHP
3
star
34

arionum-breaches

A breach database site for the Arionum cryptocurrency.
HTML
2
star
35

scoop-bucket

A custom bucket for Scoop.
PowerShell
2
star
36

ledger-php

A PHP interface for the Ledger Wallet API.
PHP
2
star
37

splas-php

A simple PHP wrapper for utilising the Unsplash api.
PHP
2
star
38

php-dev-reads

A list of blogs and resources for PHP developers to read.
2
star
39

livepeer-php

An object oriented PHP wrapper for the Livepeer API
PHP
2
star
40

arose

A block explorer for the Arionum cryptocurrency.
2
star
41

vidlii-api

A PHP wrapper for the VidLii API.
PHP
2
star
42

ohdear-python-sdk

An SDK to easily work with the Oh Dear API
Python
2
star
43

yts

A full wrapper for the YTS API.
PHP
2
star
44

arionum-mining-monitor

A mining monitor platform for the Arionum cryptocurrency.
2
star
45

kickass-torrents-cp

A community project revival of Kickass Torrents.
PHP
2
star
46

changenow-php

A PHP wrapper for the ChangeNOW API.
PHP
2
star
47

alfred-pia

Manage Private Internet Access in Alfred using "piactl"
2
star
48

dirtyapi

A PHP class for utilising the DirtyMarkup API.
PHP
2
star
49

tcli-php

A CLI torrent searching system.
PHP
2
star
50

rugby-schedule

Rugby schedules on the command-line
PHP
2
star
51

handbrake-php

A PHP integration with the Handbrake CLI.
PHP
2
star
52

vinex-php

A PHP wrapper for the Vinex API.
PHP
2
star
53

readynas-plus

An improved, responsive web interface for ReadyNAS devices.
PHP
2
star
54

diffchecker-php

An command-line tool for the DiffChecker API.
PHP
1
star
55

laravel-zero-ecologi

A demo application that was built using Laravel Zero
PHP
1
star
56

home-assistant-blueprints

1
star
57

readynas

A PHP management suite for ReadyNAS devices.
PHP
1
star
58

arionum-composer

PHP
1
star
59

arionum-rpc

PHP
1
star
60

altilly-php

A PHP wrapper for the Altilly API.
PHP
1
star
61

dirg-torrents-backup

A basic backup of DiRG torrents.
PHP
1
star
62

action-tests

PHP
1
star
63

torrentapi

A private torrent database API for caching and web development projects.
PHP
1
star
64

pest-plugin-debug

The Pest Debug Plugin
PHP
1
star
65

crypto-check

A CLI tool for checking your wallet balances.
PHP
1
star
66

nft.storage-php

An object oriented PHP wrapper for the NFT.Storage API
PHP
1
star
67

unit3d-php

An API wrapper for the UNIT3D API.
PHP
1
star
68

create-saas

[WIP] An opinionated helper for bootstrapping SAAS projects.
JavaScript
1
star
69

cryptopia

An API wrapper for Cryptopia.co.nz
PHP
1
star
70

laravel-xdg

A Laravel adapter for the XDG Base Directory specification.
PHP
1
star
71

homebrew-cask-updater-action

WIP... DO NOT USE.
Shell
1
star
72

dotfiles

A collection of my dotfiles for development.
Shell
1
star
73

ettv-torrents-backup

A basic backup of ETTV torrents.
PHP
1
star
74

MultiScraper

A multi-site torrent scraper
PHP
1
star
75

owenvoke

1
star
76

pest-coverage-test

PHP
1
star
77

vs-framework

A video site project written in PHP.
PHP
1
star
78

torrenttrader

Refactoring of the TorrentTrader project in Composer with PHP 7.1 or later.
PHP
1
star
79

phpunit-action-test

PHP
1
star
80

gitea-php

An object oriented PHP wrapper for the Gitea API
PHP
1
star
81

php-ext-ledger

A PHP extension to add Ledger Wallet binding support.
1
star
82

cryptoscamdb-php

An object oriented PHP wrapper for the CryptoScamDB API
PHP
1
star
83

github-label-presets

A default set of label presets for my GitHub repositories.
1
star
84

justwatch-php

A PHP wrapper for the JustWatch API
PHP
1
star
85

px-scripts

pxgamer's userscript repository
JavaScript
1
star
86

condors-torrents-backup

A basic backup of condors torrents.
PHP
1
star
87

arionum-node-plus

An updated version of the Arionum PHP node.
1
star
88

arionum-api

A GraphQL API interface for the Arionum blockchain
JavaScript
1
star
89

laravel-zero-sentry-example

An example repository showing how to set up Sentry logging in Laravel Zero.
PHP
1
star
90

sqlbak-cli

A CLI script for backing up MySQL databases.
PHP
1
star
91

decrypt-et

A quick project to decrypt the encrypted content on ExtraTorrent pages.
PHP
1
star
92

laravel-preset-api

A backend-only preset for the Laravel framework.
PHP
1
star
93

unstoppable-domains-php

An object oriented PHP wrapper for the Unstoppable Domains API
PHP
1
star
94

tapi

A hook for uploading to/downloading from the private torrent database API for caching and web development projects.
PHP
1
star
95

github-deploy-key

A CLI to generate and add Github SSH deploy keys to repos.
PHP
1
star