All Projects → luyadev → luya-bootstrap4

luyadev / luya-bootstrap4

Licence: MIT license
Bootstrap4 Assets and Helper classes like ActiveForm for LUYA and Yii2.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to luya-bootstrap4

luya-module-admin
Administration base module for all LUYA admin modules
Stars: ✭ 45 (+150%)
Mutual labels:  yii2, luya, bootstrap4
luya-kickstarter-bootstrap4
LUYA boilerplate to kickstart projects with Bootstrap 4.
Stars: ✭ 13 (-27.78%)
Mutual labels:  yii2, luya, bootstrap4
Yii2 Starter Kit
Yii2 Starter Kit
Stars: ✭ 1,372 (+7522.22%)
Mutual labels:  yii2, bootstrap4
Luya
LUYA is a scalable web framework and content management system with the goal to please developers, clients and users alike.
Stars: ✭ 741 (+4016.67%)
Mutual labels:  yii2, bootstrap4
Yii2 Angular Boilerplate
Yii2 REST API + Angular10 Boilerplate (Frontend/Backend)
Stars: ✭ 194 (+977.78%)
Mutual labels:  yii2, bootstrap4
Yii2 Bootstrap4
Yii 2 Bootstrap 4 Extension
Stars: ✭ 204 (+1033.33%)
Mutual labels:  yii2, bootstrap4
luya-module-cms
The LUYA CMS module provides a full functional CMS for adding contents based on blocks.
Stars: ✭ 28 (+55.56%)
Mutual labels:  yii2, luya
Azia-Admin-Bootstrap-Template
Free Bootstrap 4 Admin template
Stars: ✭ 73 (+305.56%)
Mutual labels:  bootstrap4
php-framework-benchmark
php framework benchmark (include laravel、symfony、silex、lumen、slim、yii2、tastphp etc)
Stars: ✭ 17 (-5.56%)
Mutual labels:  yii2
VTMsite
Vampire: The Masquerade character creator page made with Angular
Stars: ✭ 36 (+100%)
Mutual labels:  bootstrap4
pothole detection
By using this app users can report the potholes on road by clicking a photo via our app and if a pothole is detected by Machine Learning modal then it is saved to our Database from where officials can view the specifics like location,reported by and official can resolve the request.User are notified by email for every update regarding their request
Stars: ✭ 17 (-5.56%)
Mutual labels:  bootstrap4
mudjs
WebSocket MUD client for DreamLand
Stars: ✭ 13 (-27.78%)
Mutual labels:  bootstrap4
webpack-boilerplate
Webpack 4 boilerplate with Babel, Bootstrap 4, jQuery and SCSS on board
Stars: ✭ 24 (+33.33%)
Mutual labels:  bootstrap4
phd5-app
💜 Universal web application built upon Docker, PHP & Yii 2.0 Framework
Stars: ✭ 71 (+294.44%)
Mutual labels:  yii2
service-skeleton
Microservice skeleton based on yii2 framework.
Stars: ✭ 14 (-22.22%)
Mutual labels:  yii2
Admin-Dashboard-Template-Bootstrap
Admin Dashboard Template - Bootstrap 4 & Material Design. ATTENTION! New templates for the latest Bootstrap 5 are now also available. Access new free templates via the link below.
Stars: ✭ 47 (+161.11%)
Mutual labels:  bootstrap4
yii2-league-oauth2-server
Yii 2.0 implementation of PHP league OAuth2 server interfaces
Stars: ✭ 29 (+61.11%)
Mutual labels:  yii2
examination
Yii2-basic 考试系统
Stars: ✭ 76 (+322.22%)
Mutual labels:  yii2
startbootstrap-logo-nav
A Bootstrap navigation template with a logo in the navigation bar - created by Start Bootstrap
Stars: ✭ 65 (+261.11%)
Mutual labels:  bootstrap4
yii2-rollbar
Rollbar for Yii2
Stars: ✭ 36 (+100%)
Mutual labels:  yii2

LUYA Logo

Bootstrap 4

LUYA Tests Test Coverage Latest Stable Version Total Downloads Forum Support

Wrapper classes for new Bootstrap 4 CSS Framework for Yii and/or LUYA.

As of Bootstrap 4, the grid is completely written in FLEX. Check the Browser Support to decide if you want to use Bootstrap 4 for your project.

This package contains the following components:

  • Widgets
    • ActiveForm Widget (Yii ActiveForm Widget matching the Bootstrap 4 form styles)
    • Breadcrumbs
    • LinkPager
    • ActiveField Widget
    • Grid View / Action Column
  • Tags
    • Tooltips
  • CMS Blocks
    • Image
    • Carousel
  • Asset File (contains precompiled bootstrap4 css and js files via cdn)

Installation

Add the package to your project via composer

composer require luyadev/luya-bootstrap4:^1.0

Assets Bundle

To use the css and js files of bootstrap just register the Bootstrap4Asset into your layout file with the following code of your layout.php file:

luya\bootstrap4\Bootstrap4Asset::register($this)

At the top section of your layout file. This will include all required css and js files to use bootstrap 4 and set the right depenecy with jquery.

Active Form

A common way to build forms is the use thy Yii ActiveForm widget, to match all bootstrap4 components use it like following:

<?php
use luya\bootstrap4\ActiveForm;
use yii\helpers\Html;

/* @var $this luya\web\View */
/* @var $form luya\bootstrap4\ActiveForm */
?>
<h1>Bootstrap 4 ActiveForm</h1>
<?php $form = ActiveForm::begin() ?>
    <?= $form->field($model, 'username') ?>
    <?= $form->field($model, 'password')->passwordInput() ?>
    <?= Html::submitButton('Login', ['class' => 'btn btn-primary-outline']) ?>
<?php ActiveForm::end() ?>

Tip: In order to style required fields with asterisks, you can use the following CSS:

div.required label.control-label:after {
   content: " *";
   color: red;
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].