Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ekyna/fontawesomebundle
[READ-ONLY] FontAwesome Symfony 2 integration
https://github.com/ekyna/fontawesomebundle
List: fontawesomebundle
Last synced: 9 days ago
JSON representation
[READ-ONLY] FontAwesome Symfony 2 integration
- Host: GitHub
- URL: https://github.com/ekyna/fontawesomebundle
- Owner: ekyna
- License: mit
- Created: 2014-01-26T16:18:27.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-12-14T10:27:52.000Z (almost 9 years ago)
- Last Synced: 2024-04-20T21:22:18.752Z (7 months ago)
- Language: PHP
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
FontAwesomeBundle
=================[FortAwesome/Font-Awesome](https://github.com/FortAwesome/Font-Awesome.git) integration for Symfony2.
- Fonts installation
- Preconfigured assetComposer installation:
```json
{
"require": {
"ekyna/fontawesome-bundle": "0.1.*@dev"
},
"scripts": {
"post-install-cmd": [
"Ekyna\\FontAwesomeBundle\\Composer\\ScriptHandler::install"
],
"post-update-cmd": [
"Ekyna\\FontAwesomeBundle\\Composer\\ScriptHandler::install"
]
},
}
```Register bundle in kernel:
```php
// app/AppKernel.php
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
...
new Ekyna\FontAwesomeBundle\EkynaFontAwesomeBundle()
);
}
}
```Fonts installation without composer script handler:
`php app:console ekyna:fontawesome:install`Configuration (optionnal, default values)
```yaml
# app/config/config.yml
ekyna_fontawesome:
output_dir: ~
assets_dir: %kernel.root_dir%/../vendor/fortawesome/font-awesome
configure_assetic: true
```Use in a twig template:
```twig
{% stylesheets output='css/backend.css' filter='cssrewrite, ?yui_css'
...
'css/fontawesome.css'
...
%}
{% endstylesheets %}
```