{"id":15024332,"url":"https://github.com/luyadev/luya-bootstrap4","last_synced_at":"2025-10-28T12:11:39.349Z","repository":{"id":46124694,"uuid":"52255611","full_name":"luyadev/luya-bootstrap4","owner":"luyadev","description":"Bootstrap4 Assets and Helper classes like ActiveForm for LUYA and Yii2.","archived":false,"fork":false,"pushed_at":"2023-01-06T07:53:03.000Z","size":276,"stargazers_count":18,"open_issues_count":0,"forks_count":13,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-09T13:41:32.527Z","etag":null,"topics":["bootstrap","bootstrap4","hacktoberfest","luya","yii2"],"latest_commit_sha":null,"homepage":"https://luya.io","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luyadev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-22T07:34:21.000Z","updated_at":"2025-04-01T06:30:09.000Z","dependencies_parsed_at":"2023-02-05T16:00:47.185Z","dependency_job_id":null,"html_url":"https://github.com/luyadev/luya-bootstrap4","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luyadev%2Fluya-bootstrap4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luyadev%2Fluya-bootstrap4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luyadev%2Fluya-bootstrap4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luyadev%2Fluya-bootstrap4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luyadev","download_url":"https://codeload.github.com/luyadev/luya-bootstrap4/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248525758,"owners_count":21118748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","bootstrap4","hacktoberfest","luya","yii2"],"created_at":"2024-09-24T20:00:08.327Z","updated_at":"2025-10-28T12:11:39.260Z","avatar_url":"https://github.com/luyadev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/luyadev/luya/master/docs/logo/luya-logo-0.2x.png\" alt=\"LUYA Logo\"/\u003e\n\u003c/p\u003e\n\n# Bootstrap 4\n\n[![LUYA](https://img.shields.io/badge/Powered%20by-LUYA-brightgreen.svg)](https://luya.io)\n![Tests](https://github.com/luyadev/luya-bootstrap4/workflows/Tests/badge.svg)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/a5356371e27bf46c2329/test_coverage)](https://codeclimate.com/github/luyadev/luya-bootstrap4/test_coverage)\n[![Latest Stable Version](https://poser.pugx.org/luyadev/luya-bootstrap4/v/stable)](https://packagist.org/packages/luyadev/luya-bootstrap4)\n[![Total Downloads](https://poser.pugx.org/luyadev/luya-bootstrap4/downloads)](https://packagist.org/packages/luyadev/luya-bootstrap4)\n[![Forum Support](https://img.shields.io/badge/Slack-luyadev-yellowgreen.svg)](https://forum.luya.io/)\n\nWrapper classes for new [Bootstrap 4](https://getbootstrap.com/) CSS Framework for [Yii](https://yiiframework.com) and/or [LUYA](https://luya.io).\n\n\u003e As of Bootstrap 4, the grid is completely written in FLEX. Check the [Browser Support](https://caniuse.com/#search=flex) to decide if you want to use Bootstrap 4 for your project.\n\nThis package contains the following components:\n\n+ Widgets\n   + ActiveForm Widget (Yii ActiveForm Widget matching the Bootstrap 4 form styles)\n   + Breadcrumbs\n   + LinkPager\n   + ActiveField Widget\n   + Grid View / Action Column\n+ Tags\n   + Tooltips\n+ CMS Blocks\n   + Image\n   + Carousel\n+ Asset File (contains precompiled bootstrap4 css and js files via cdn)\n\n## Installation\n\nAdd the package to your project via composer\n\n```sh\ncomposer require luyadev/luya-bootstrap4:^1.0\n```\n\n## Assets Bundle\n\nTo 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:\n\n```php\nluya\\bootstrap4\\Bootstrap4Asset::register($this)\n```\n\nAt 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.\n\n## Active Form\n\nA common way to build forms is the use thy Yii ActiveForm widget, to match all bootstrap4 components use it like following:\n\n```php\n\u003c?php\nuse luya\\bootstrap4\\ActiveForm;\nuse yii\\helpers\\Html;\n\n/* @var $this luya\\web\\View */\n/* @var $form luya\\bootstrap4\\ActiveForm */\n?\u003e\n\u003ch1\u003eBootstrap 4 ActiveForm\u003c/h1\u003e\n\u003c?php $form = ActiveForm::begin() ?\u003e\n    \u003c?= $form-\u003efield($model, 'username') ?\u003e\n    \u003c?= $form-\u003efield($model, 'password')-\u003epasswordInput() ?\u003e\n    \u003c?= Html::submitButton('Login', ['class' =\u003e 'btn btn-primary-outline']) ?\u003e\n\u003c?php ActiveForm::end() ?\u003e\n```\n\nTip: In order to style required fields with asterisks, you can use the following CSS:\n\n```css\ndiv.required label.control-label:after {\n   content: \" *\";\n   color: red;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluyadev%2Fluya-bootstrap4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluyadev%2Fluya-bootstrap4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluyadev%2Fluya-bootstrap4/lists"}