• Stars
    star
    286
  • Rank 140,588 (Top 3 %)
  • Language
    PHP
  • License
    BSD 3-Clause "New...
  • Created over 11 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Twitter Bootstrap for the Yii PHP framework.

Yiistrap

Build Status

Twitter Bootstrap for Yii.

NOTE!

We have re-arranged the repository for this project to make it easier for people to choose the right version. Please make sure you do the following changes if they apply to you:

  • If you are using the old bs3 branch you should switch to use the 2.0.0 tag (or 2.0.x-dev alias).
  • If you are using the old master branch you should switch to use the 1.x branch.

Installation

With Composer

The easiest way to install Yiistrap is to use Composer. Add the following to your composer.json file:

"require": {
	"crisu83/yiistrap": "2.0.x-dev"
}

Run the following command to download the extension:

php composer.phar update

Add the following to your application configuration:

.....
'components' => array(
    .....
    'bootstrap' => array(
        'class' => '\TbApi',
    ),
),
.....
'modules' => array(
    .....
    'gii' => array(
        'class' => 'system.gii.GiiModule',
        'generatorPaths' => array('vendor.crisu83.yiistrap.gii'),
    ),
),
.....

Add the following line to your main layout in protected/views/layouts/main.php to register the necessary CSS and JavaScript files:

<?php Yii::app()->bootstrap->register(); ?>

Without Composer

Follow the above steps first, but download and unzip Yiistrap instead of requiring it through Composer.

Then you also need to add the following to your application configuration:

'aliases' => array(
    'yiistrap' => __DIR__ . '/relative/path/to/yiistrap',
),
.....
'import' => array(
    .....
    'yiistrap.behaviors.*',
    'yiistrap.components.*',
    'yiistrap.form.*',
    'yiistrap.helpers.*',
    'yiistrap.widgets.*',
),
.....

Usage

Documentation not updated yet, but use the current docs as a guideline: http://www.getyiistrap.com

Use the following command to generate ApiGen documentation:

php vendor\bin\apigen generate

Note: When you use a widget, prepend a \ to the filename to use autoload it through Composer:

<?php $this->widget('\TbNav', array(
    'type' => TbHtml::NAV_TYPE_TABS,
    'items' => array(
        array('label' => 'Home', 'url' => '#', 'active' => true),
        array('label' => 'Profile', 'url' => '#',),
        array('label' => 'Messages', 'url' => '#',),
    ),
)); ?>

More Repositories

1

yii-auth

Web UI for Yii's authorization manager.
PHP
134
star
2

php-conversion

Library for converting units and sizes in PHP
PHP
129
star
3

yii-app

A great way to start building your web application with the Yii PHP framework.
CSS
110
star
4

capthatflag

A fast-paced multiplayer capture the flag game written in JavaScript.
CSS
45
star
5

ctf-game

Fast-paced hot seat multiplayer game written in modern JavaScript.
JavaScript
31
star
6

yii-imagemanager

Image manager extension for the Yii PHP framework.
PHP
23
star
7

overseer

Framework agnostic RBAC implementation in PHP
PHP
18
star
8

php-shortid

Library for generating short non-sequential unique identifiers in PHP
PHP
14
star
9

yii-configbuilder

Helper for building application configurations for the Yii PHP framework.
PHP
12
star
10

yii-sentry

Sentry for the Yii PHP framework.
PHP
10
star
11

yii-formatter

A collection of formatters for the Yii PHP framework.
PHP
10
star
12

yii-caviar

Next generation code generation for Yii.
PHP
10
star
13

yiistrap2

Yiistrap for Yii2.
PHP
10
star
14

yii-less

Yii extension for compiling LESS files client and server-side.
PHP
9
star
15

yii-consoletools

A collection of tools for developing console commands for Yii.
PHP
8
star
16

yii-clientscript

A more advanced version of the client script component in Yii.
PHP
6
star
17

yii-seo

Search engine optimization for the Yii PHP framework.
PHP
6
star
18

yii-filemanager

File manager for the Yii PHP framework.
PHP
6
star
19

hubot-twitch

Twitch.tv adapter for Hubot
CoffeeScript
5
star
20

webpack-minimal

Minimalistic Webpack setup with Babel
JavaScript
4
star
21

yii-cms

A modular content management system for the Yii PHP framework.
PHP
3
star
22

hello

A JavaScript powered portfolio for developers.
CSS
3
star
23

yiistrap-widgets

Extension library for Yiistrap.
PHP
3
star
24

php-expression

A modest library for safe evaluation of PHP expressions.
PHP
3
star
25

yii-extension

A starting point for extensions for the Yii PHP framework.
PHP
3
star
26

acolyte

Your personal Twitch robot
JavaScript
2
star
27

yii-i18nattributes

Attribute translations for the Yii PHP framework.
PHP
2
star
28

yii-arbehaviors

A collection of active record behaviors for the Yii PHP framework.
PHP
2
star
29

memory

Memory game for children build with Phaser.
JavaScript
2
star
30

yii-app-advanced

A more advanced version of yii-app https://github.com/Crisu83/yii-app
CSS
2
star
31

react-restricted

Permission-based view restrictions for React.
TypeScript
2
star
32

yii-rights

Automatically exported from code.google.com/p/yii-rights
PHP
2
star
33

yii-globals

Global shorthand functions for commonly used Yii methods.
PHP
2
star
34

yii-image

Image versioning and manipulation for the Yii PHP framework.
PHP
2
star
35

twentyfour-symfony-backbone

Time tracking application built with Symfony2 and Backbone.js.
JavaScript
2
star
36

yii-debug

Debugging tools for the Yii PHP framework.
PHP
1
star
37

foosball-android

Android application for tracking foosball game statistics.
Java
1
star
38

announce

Application for posting announcements.
CSS
1
star
39

rabbitmq-domain-events

A proof of concept implementation of publishing and subscribing to domain events using RabbitMQ.
TypeScript
1
star
40

space-game

A space game developed with Hatchet, a component based game engine for WinJS.
JavaScript
1
star
41

yii-multilingual

Multilingual toolkit for the Yii PHP framework.
PHP
1
star
42

shocker-scripts

A collection of my personal docker shell scripts.
Shell
1
star
43

php-vm

A scalable project template for any PHP application
1
star
44

covid19-graphql

GraphQL API for querying data about Covid-19 across the world.
TypeScript
1
star
45

crisu83

My GitHub profile
1
star
46

yii-ajaxtools

AJAX tools for the Yii PHP framework.
PHP
1
star
47

yiistrap-docs

Documentation for Yiistrap, Twitter Bootstrap for the Yii PHP framework
PHP
1
star
48

yii-composer

Composer callbacks for the Yii PHP framework.
PHP
1
star
49

yii-livereload

Extension for the Yii PHP framework that registers with the Grunt livereload server.
PHP
1
star