gutocf / cakephp-font-awesome
Helper for CakePHP 4 that wraps khill/fontawesomephp library
Installs: 1 992
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- php: ^8.0
- cakephp/cakephp: ^4
- khill/fontawesomephp: ^2.0
Requires (Dev)
- cakedc/cakephp-phpstan: ^2.0
- cakephp/bake: ^2.6
- cakephp/cakephp-codesniffer: ^4.5
- phpstan/phpstan: ^1.5
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.6
README
Requirements
- PHP ^8.0
- CakePHP ^4
Installation
Install the plugin with composer
composer require gutocf/cakephp-font-awesome
Load helper
Load the helper at Application.php
file
public function initialize(): void { //... $this->loadHelper('Gutocf/FontAwesome.FontAwesome'); }
Use it at your views
echo $this->FontAwesome->icon('check');