Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dmyers/fuel-bootstrap
A Twitter Bootstrap Package for Fuel
https://github.com/dmyers/fuel-bootstrap
Last synced: 1 day ago
JSON representation
A Twitter Bootstrap Package for Fuel
- Host: GitHub
- URL: https://github.com/dmyers/fuel-bootstrap
- Owner: dmyers
- License: mit
- Created: 2012-07-10T18:57:43.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2016-05-18T23:11:58.000Z (over 8 years ago)
- Last Synced: 2023-03-14T08:20:23.853Z (over 1 year ago)
- Language: PHP
- Size: 29.3 KB
- Stars: 9
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Fuel Bootstrap Package
A super simple [Twitter Bootstrap](http://twitter.github.com/bootstrap/) package for Fuel.
## About
* Version: 1.0.0
* License: MIT License
* Author: Derek Myers## Installation
### Git Submodule
If you are installing this as a submodule (recommended) in your git repo root, run this command:
$ git submodule add git://github.com/dmyers/fuel-bootstrap.git fuel/packages/bootstrap
Then you you need to initialize and update the submodule:
$ git submodule update --init --recursive fuel/packages/bootstrap/
### Download
Alternatively you can download it and extract it into `fuel/packages/bootstrap/`.
## Usage
Simply use Fuel's built in Assets (or [Casset](https://github.com/canton7/fuelphp-casset/)), Form, Pagination, and Validation Errors classes as usual and they will use Twitter Bootstrap's css classnames for the styling. We have also included our own Alerts and Breadcrumbs classes with examples below.
```php
Alerts::success('Well done! You successfully read this important alert message.');
Alerts::danger('Oh snap! Change a few things up and try submitting again.');
Alerts::render();Breadcrumbs::add('/', 'Home');
Breadcrumbs::add('library', 'Library');
Breadcrumbs::active('Data');
Breadcrumbs::render();
```## Updates
In order to keep the package up to date simply run:
$ git submodule update --recursive fuel/packages/bootstrap/