<commit_before># Bootstrap UI

[![Build Status](https://travis-ci.org/FriendsOfCake/bootstrap-ui.svg?branch=master)](https://travis-ci.org/FriendsOfCake/bootstrap-ui)
[![Total Downloads](https://poser.pugx.org/friendsofcake/bootstrap-ui/downloads.svg)](https://packagist.org/packages/friendsofcake/bootstrap-ui)
[![License](https://poser.pugx.org/friendsofcake/bootstrap-ui/license.svg)](https://packagist.org/packages/friendsofcake/bootstrap-ui)

Transparently use [Twitter Bootstrap 3][twbs3] with [CakePHP 3][cakephp].

## Requirements

* CakePHP 3.x
* Twitter Bootstrap 3.x

## What's included?

- FlashComponent + elements (types: error/danger, info, success, warning)
- FormHelper (types: vertical, inline, horizontal | inputs: text, textarea, select, checkbox, radio)
- Widgets (button, textarea)
- Sample layouts (cover, signin, dashboard)
- Bake templates *incomplete*
- HtmlHelper *coming soon*

## Install

Using [Composer][composer]:

```
composer require friendsofcake/bootstrap-ui:dev-master
```

Because this plugin has the type `cakephp-plugin` set in its own `composer.json`,
[Composer][composer] will install it inside your /plugins directory, rather than
in your `vendor-dir`. It is recommended that you add /plugins to your `.gitignore`
file and here's [why][composer:ignore].

You then need to load the plugin. In `boostrap.php`, something like:

```php
\Cake\Core\Plugin::load('BootstrapUI');
```

For a complete setup, add the following to your `App\Controller\AppController`:

```php
public $components = ['BootstrapUI.Flash'];
public $helpers = ['BootstrapUI.Form'];
public $layout = 'BootstrapUI.default';
```

If you wish to use your own layout template, just make sure to include:

```php
// in the <head>
echo $this->Html->css('path/to/bootstrap.css');
echo $this->Html->script(['path/to/jquery.js', 'path/to/bootstrap.js']);
```

When using the included layout (or a copy of), extra layout types (directly taken from the<commit_msg>Remove outdated info from README<commit_after># Bootstrap UI

[![Build Status](https://travis-ci.org/FriendsOfCake/bootstrap-ui.svg?branch=master)](https://travis-ci.org/FriendsOfCake/bootstrap-ui)
[![Total Downloads](https://poser.pugx.org/friendsofcake/bootstrap-ui/downloads.svg)](https://packagist.org/packages/friendsofcake/bootstrap-ui)
[![License](https://poser.pugx.org/friendsofcake/bootstrap-ui/license.svg)](https://packagist.org/packages/friendsofcake/bootstrap-ui)

Transparently use [Twitter Bootstrap 3][twbs3] with [CakePHP 3][cakephp].

## Requirements

* CakePHP 3.x
* Twitter Bootstrap 3.x

## What's included?

- FlashComponent + elements (types: error, info, success, warning)
- FormHelper (types: vertical, inline, horizontal | inputs: text, textarea, select, checkbox, radio)
- Widgets (button, textarea)
- Sample layouts (cover, signin, dashboard)
- Bake templates *incomplete*
- HtmlHelper *coming soon*

## Install

Using [Composer][composer]:

```
composer require friendsofcake/bootstrap-ui:dev-master
```

You then need to load the plugin. In `boostrap.php`, something like:

```php
\Cake\Core\Plugin::load('BootstrapUI');
```

For a complete setup, add the following to your `App\Controller\AppController`:

```php
public $components = ['BootstrapUI.Flash'];
public $helpers = ['BootstrapUI.Form'];
public $layout = 'BootstrapUI.default';
```

If you wish to use your own layout template, just make sure to include:

```php
// in the <head>
echo $this->Html->css('path/to/bootstrap.css');
echo $this->Html->script(['path/to/jquery.js', 'path/to/bootstrap.js']);
```

When using the included layout (or a copy of), extra layout types (directly taken from the
{'fraction_non_alphanumeric': 0.15209646478487257, 'fraction_numerical': 0.0027404768429706767, 'mean_word_length': 5.471631205673759, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5743617', 'n_tokens_mistral': 1205, 'n_tokens_neox': 1150, 'n_words': 310}