technicalguru/font-awesome
Composer 安装命令:
composer require technicalguru/font-awesome
包简介
Provide Free Font Awesome to PHP apps
README 文档
README
Provides Free Font Awesome icons for PHP apps.
License
This project is licensed under GNU LGPL 3.0.
Installation
By Composer
composer install technicalguru/font-awesome
By Package Download
You can download the source code packages from GitHub Release Page
How to use
Get the provided version number
$version = \TgFontAwesome\FontAwesome::getVersion();
Get the URI of a font library
The following method will give you URIs for your further inspection:
use TgFontAwesome\FontAwesome;
// Get URI to all icons library, as minified CSS
$uri = FontAwesome::getUri();
// Get URI to all icons library, as uncompressed CSS
$uri = FontAwesome::getUri('all');
// Get URI to all icons library, as minified Javascript
$uri = FontAwesome::getUri('all.min', FontAwesome::JS);
You can get the correct HTML script tag to be included in your HTML output in the same way:
use TgFontAwesome\FontAwesome;
// Get <link> stylesheet tag to all icons library, as minified CSS
$tag = FontAwesome::getLink();
// Get <link> stylesheet tag to all icons library, as uncompressed CSS
$tag = FontAwesome::getLink('all');
// Get <script> tag to all icons library, as minified Javascript
$tag = FontAwesome::getLink('all.min', FontAwesome::JS);
All methods will throw an FontAwesomeException when you ask for a non-existing library.
Contribution
Report a bug, request an enhancement or pull request at the GitHub Issue Tracker.
统计信息
- 总下载量: 1.02k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2020-11-13