Download the PHP package funayaki/bootstrap-ui without Composer

On this page you can find all versions of the php package funayaki/bootstrap-ui. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package bootstrap-ui

Bootstrap UI

Build Status Coverage Status Total Downloads License

Transparently use AdminLTE 2 with CakePHP 3.

Requirements

What's included?

Installing Using Composer

cd to the root of your app folder (where the composer.json file is) and run the following command:

Then load the plugin by adding the following to your app's config/boostrap.php:

or using CakePHP's console:

Usage

You will need to modify your src/View/AppView class to either extend BootstrapUI\View\UIView or use the trait BootStrapUI\View\UIViewTrait.

AppView Setup

For a quick setup, just make your AppView class extend BootstrapUI\View\UIView. The base class will handle the initializing and loading of the BootstrapUI layout.ctp for your app.

The src\View\AppView.php will look something like the following:

AppView Setup Using UIViewTrait

If you're adding BootstrapUI to an existing application. It might be easier to use the trait, as it gives you more control over the loading of the layout.

BootstrapUI Layout

BootstrapUI comes with its own layout.ctp file and examples taken from the Bootstrap framework.

When no layout for the view is defined the BootstrapUI\View\UIViewTrait will load its own layout.ctp file. You can override this behavior in two ways.

Loading the Bootstrap framework

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

When using the BootstrapUI layout (or a copy of it), extra layout types (directly taken from the Bootstrap examples). You just need to copy them to your application's layouts directory:

You can then simply extend them in your views like so:

Available types are:

NOTE: Remember to set the stylesheets in the layouts you copy.

Installing Bootstrap via Bower

A quick way of getting the Bootstrap assets installed is using bower. Assuming you are in ROOT:

Console Bake

For those of you who want even more automation, some bake templates have been included. Use them like so:

Helper Usage

At the core of BootstrapUI is a collection of enhancements for CakePHP core helpers. These helpers replace the HTML templates used to render elements for the views. This allows you to create forms and components that use the Bootstrap styles.

The current list of enhanced helpers are:

When the BootstrapUI\View\UIViewTrait is initialized it loads the above helpers with the same aliases as the CakePHP core helpers. That means that when you use $this->Form->create() in your views. The helper being used is from the BootstrapUI plugin.

Basic Form

will render this HTML:

Horizontal Form

will render this HTML:

Configuration

You can configure each of the helpers by passing in extra parameters through the AppView.php.

Here is an example of changing the prev and next labels for the PaginatorHelper.

To style auth flash messages properly set the flash key in AuthComponent config as shown:

NOTE: Check tests for more examples.

Testing

You can run the tests for BootstrapUI by doing the following:

Patches & Features

To ensure your PRs are considered for upstream, you MUST follow the CakePHP coding standards. A pre-commit hook has been included to automatically run the code sniffs for you. From your project's root directory:

Bugs & Feedback

http://github.com/funayaki/bootstrap-ui/issues

License

Copyright (c) 2015, Jad Bitar and licensed under The MIT License.


All versions of bootstrap-ui with dependencies

PHP Build Version
Package Version
Requires cakephp/cakephp Version ^3.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package funayaki/bootstrap-ui contains the following files

Loading the files please wait ....