sopinet / bootstrap-extend-bundle
Twitter Bootstrap Extend for Symfony2
Installs: 442
Dependents: 2
Suggesters: 0
Security: 0
Stars: 2
Watchers: 5
Forks: 0
Language:JavaScript
Type:symfony-bundle
Requires
- php: >=5.3.3
Requires (Dev)
- braincrafted/bootstrap-bundle: dev-master
- twitter/bootstrap: 2.3.*
This package is not auto-updated.
Last update: 2024-12-30 14:47:30 UTC
README
What is it?
It is alpha bundle for Symfony2, you can add jquery, bootstrap and other libraries with easy and fast method.
Thanks to Florian Eckerstorfer Inspirated in https://github.com/braincrafted/bootstrap-bundle
Installation via composer
{
"require": {
"sopinet/bootstrap-extend-bundle": "dev-master"
}
},
"scripts": {
"post-install-cmd": [
"Sopinet\\Bundle\\BootstrapExtendBundle\\Composer\\ScriptHandler::copyExport"
],
"post-update-cmd": [
"Sopinet\\Bundle\\BootstrapExtendBundle\\Composer\\ScriptHandler::copyExport"
]
}
Add in AppKernel the bundle
new Sopinet\Bundle\BootstrapExtendBundle\SopinetBootstrapExtendBundle(),
After execute:
sudo php app/console assets:install
Configuration
You can configure what librey include, by default only jquery and bootstrap, for add more:
sopinet_bootstrap_extend:
include: [ jcrop, image-gallery, font-awesome, jqueryform, datepicker ]
Usage
In your twig, you can do any like:
{% extends 'SopinetBootstrapExtendBundle:Base:normal.html.twig' %}
{% block title %}Yourweb{% endblock %}
{% block body %}
<div class="container">
Hello world!
</div>
{% endblock %}
Problems, bugs?
Please report it via github