{"id":26718540,"url":"https://github.com/yiisoft/bootstrap5","last_synced_at":"2025-04-06T13:11:23.754Z","repository":{"id":37803286,"uuid":"274239637","full_name":"yiisoft/bootstrap5","owner":"yiisoft","description":"Yii Framework Bootstrap 5 support","archived":false,"fork":false,"pushed_at":"2025-04-03T08:34:46.000Z","size":812,"stargazers_count":64,"open_issues_count":1,"forks_count":21,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-04-03T09:32:28.261Z","etag":null,"topics":["bootstrap","bootstrap5","hacktoberfest","optionalforframeworkannounce","yii3"],"latest_commit_sha":null,"homepage":"https://www.yiiframework.com/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yiisoft.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"open_collective":"yiisoft","github":["yiisoft"]}},"created_at":"2020-06-22T20:51:29.000Z","updated_at":"2025-04-03T08:34:47.000Z","dependencies_parsed_at":"2023-12-13T03:34:37.249Z","dependency_job_id":"cd252fab-56eb-4c48-a271-3167aac2b47f","html_url":"https://github.com/yiisoft/bootstrap5","commit_stats":{"total_commits":155,"total_committers":22,"mean_commits":7.045454545454546,"dds":0.7741935483870968,"last_synced_commit":"debf173f7ba9b526774ee82936ebb9a9940f1196"},"previous_names":["yiisoft/bootstrap5"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fbootstrap5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fbootstrap5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fbootstrap5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fbootstrap5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yiisoft","download_url":"https://codeload.github.com/yiisoft/bootstrap5/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247419854,"owners_count":20936012,"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","bootstrap5","hacktoberfest","optionalforframeworkannounce","yii3"],"created_at":"2025-03-27T17:14:59.239Z","updated_at":"2025-04-06T13:11:23.745Z","avatar_url":"https://github.com/yiisoft.png","language":"PHP","readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/yiisoft\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://yiisoft.github.io/docs/images/yii_logo.svg\" height=\"100px\" alt=\"Yii\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://getbootstrap.com/\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://v4-alpha.getbootstrap.com/assets/brand/bootstrap-solid.svg\" height=\"100px\" alt=\"Bootstrap\"\u003e\n    \u003c/a\u003e\n    \u003ch1 align=\"center\"\u003eYii Framework Twitter Bootstrap 5 Extension\u003c/h1\u003e\n    \u003cbr\u003e\n\u003c/p\u003e\n\n[![Latest Stable Version](https://poser.pugx.org/yiisoft/bootstrap5/v)](https://packagist.org/packages/yiisoft/bootstrap5)\n[![Total Downloads](https://poser.pugx.org/yiisoft/bootstrap5/downloads)](https://packagist.org/packages/yiisoft/bootstrap5)\n[![Build status](https://github.com/yiisoft/bootstrap5/workflows/build/badge.svg)](https://github.com/yiisoft/bootstrap5/actions?query=workflow%3Abuild)\n[![Code coverage](https://codecov.io/gh/yiisoft/bootstrap5/graph/badge.svg?token=S8ISXCPS2A)](https://codecov.io/gh/yiisoft/bootstrap5)\n[![Mutation testing badge](https://img.shields.io/endpoint?style=flat\u0026url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fyiisoft%2Fbootstrap5%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/yiisoft/bootstrap5/master)\n[![static analysis](https://github.com/yiisoft/bootstrap5/workflows/static%20analysis/badge.svg)](https://github.com/yiisoft/bootstrap5/actions?query=workflow%3A%22static+analysis%22)\n[![type-coverage](https://shepherd.dev/github/yiisoft/bootstrap5/coverage.svg)](https://shepherd.dev/github/yiisoft/bootstrap5)\n\nThis [Yii Framework] extension encapsulates [Twitter Bootstrap 5] components\nand plugins in terms of Yii widgets, and thus makes using Bootstrap components/plugins\nin Yii applications extremely easy.\n\n## Requirements\n\n- PHP 8.1 or higher.\n\n## Installation\n\nThe package could be installed with [Composer](https://getcomposer.org):\n\n```shell\ncomposer require yiisoft/bootstrap5\n```\n\n## Install assets\n\nThere are several ways to install the assets, they are:\n\n1. Using the [AssetPackagist](https://asset-packagist.org/) package manager.\n\n    Add to composer.json the following:\n    \n    ```json\n    {\n        \"require\": {\n            \"npm-asset/bootstrap\": \"^5.3\",\n            \"oomphinc/composer-installers-extender\": \"^2.0\"\n        },\n        \"extra\": {\n            \"installer-types\": [\n                \"npm-asset\"\n            ],\n            \"installer-paths\": {\n                \"./node_modules/{$name}\": [\n                    \"type:npm-asset\"\n                ]\n            }\n        },\n        \"repositories\": [\n            {\n                \"type\": \"composer\",\n                \"url\": \"https://asset-packagist.org\"\n            }\n        ]\n    }\n    ```\n    \n    Once the changes are made, you can install the assets using the following command:\n    \n    ```shell\n    composer update\n    ```\n\n2. Using the [npm-asset](https://www.npmjs.com/) package manager.\n\n    Run the following command at the root directory of your application.\n    \n    ```shell\n    npm i bootstrap@5.3.1\n    ```\n\n## Using the [yiisoft/assets](https://github.com/yiisoft/assets) package\n\nTo use the asset classes in the `src/Assets` directory (such as `BootstrapAsset` and `BootstrapCdnAsset`), you need to\ninstall additional packages:\n    \n```shell\ncomposer require yiisoft/assets yiisoft/files\n```\n\n## General usage\n\nFor example, the following single line of code in a view file would render a Bootstrap Progress plugin:\n\n```php\n\u003c?= Yiisoft\\Bootstrap5\\Progress::widget()\n    -\u003epercent('60')\n    -\u003elabel('test') ?\u003e\n```\n\n## Documentation\n\n- [Twitter Bootstrap 5.3](https://getbootstrap.com/docs/5.3/getting-started/introduction/)\n- Guide:\n  - [English](docs/guide/en/README.md)\n- [Internals](docs/internals.md)\n\nIf you need help or have a question, the [Yii Forum](https://forum.yiiframework.com/c/yii-3-0/63) is a good place for that.\nYou may also check out other [Yii Community Resources](https://www.yiiframework.com/community).\n\n## License\n\nThe Yii Framework Twitter Bootstrap 5 Extension is free software. It is released under the terms of the BSD License.\nPlease see [`LICENSE`](./LICENSE.md) for more information.\n\nMaintained by [Yii Software](https://www.yiiframework.com/).\n\n## Support the project\n\n[![Open Collective](https://img.shields.io/badge/Open%20Collective-sponsor-7eadf1?logo=open%20collective\u0026logoColor=7eadf1\u0026labelColor=555555)](https://opencollective.com/yiisoft)\n\n## Follow updates\n\n[![Official website](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=flat)](https://www.yiiframework.com/)\n[![Twitter](https://img.shields.io/badge/twitter-follow-1DA1F2?logo=twitter\u0026logoColor=1DA1F2\u0026labelColor=555555?style=flat)](https://twitter.com/yiiframework)\n[![Telegram](https://img.shields.io/badge/telegram-join-1DA1F2?style=flat\u0026logo=telegram)](https://t.me/yii3en)\n[![Facebook](https://img.shields.io/badge/facebook-join-1DA1F2?style=flat\u0026logo=facebook\u0026logoColor=ffffff)](https://www.facebook.com/groups/yiitalk)\n[![Slack](https://img.shields.io/badge/slack-join-1DA1F2?style=flat\u0026logo=slack)](https://yiiframework.com/go/slack)\n\n[Yii Framework]: https://www.yiiframework.com/\n[Twitter Bootstrap 5]: https://getbootstrap.com/docs/5.3/getting-started/introduction/\n","funding_links":["https://opencollective.com/yiisoft","https://github.com/sponsors/yiisoft"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiisoft%2Fbootstrap5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyiisoft%2Fbootstrap5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiisoft%2Fbootstrap5/lists"}