Download the PHP package stonehilt/bootstrap without Composer
On this page you can find all versions of the php package stonehilt/bootstrap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package bootstrap
StoneHilt Bootstrap
Integration of the Bootstrap CSS library into Laravel components. The goal is to have each key function in the Bootstrap map to a laravel component that can be easily and consistently integrated into a project.
Everything done in these components can be performed with pure HTML in a blade, however these components allow for the better abstraction of logic without using a series custom blade partials.
Usage
Installation
Include this library:
Add the CSS and Javascript in your layout(s):
Most functionality is automatically injected with from the StoneHiltBootstrapServiceProvider
, though there is a couple instances where the ViewServiceProvider
will need to be replaced/edited.
The simple route is to include StoneHilt\Bootstrap\Providers\ViewServiceProvider::class
in the app config instead of Illuminate\View\ViewServiceProvider::class
(or extend it if the Illuminate class is already replaced).
Customization
All the views that back each component can be published to the app's resource directory for project customization.
To use local (ie non-cdn) assets, the configuration needs to be published and then updated. The assets themselves will need to be published if using composer based source files.
Unless there's a security or performance reason, it is not recommended to use local assets and simply use the default settings to include the CDN provided copies.
To change the version of Bootstrap used, the config will need to be published.
Available Components
Bootstrap's Component | HTML Tag |
---|---|
Accordion | x-bootstrap::component.accordion |
Alert | x-bootstrap::component.alert |
Badge | x-bootstrap::component.badge |
Breadcrumb | x-bootstrap::component.breadcrumb |
Button | x-bootstrap::component.button |
Card | x-bootstrap::component.card |
Carousel | x-bootstrap::component.carousel |
Dropdown | x-bootstrap::component.dropdown |
List Group | x-bootstrap::component.list-group |
Nav | x-bootstrap::component.nav |
Navbar | x-bootstrap::component.navbar |
Offcanvas | x-bootstrap::component.offcanvas |
Progress | x-bootstrap::component.progress |
Tabs | x-bootstrap::component.tabs |
Form | HTML Tag |
---|---|
Form | x-bootstrap::form |
Checkbox | x-bootstrap::form.checkbox |
Control | x-bootstrap::form.control |
Control Group | x-bootstrap::form.control-group |
Radio | x-bootstrap::form.radio |
Select | x-bootstrap::form.select |
Typography | HTML Tag |
---|---|
Heading | x-bootstrap::typography.heading |
Text | x-bootstrap::typography.text |
General | HTML Tag |
---|---|
Container | x-bootstrap::container |
Column | x-bootstrap::col |
Row | x-bootstrap::row |
Image | x-bootstrap::image |
Figure | x-bootstrap::figure |
Table | x-bootstrap::table |
Support | HTML Tag |
---|---|
CSS | x-bootstrap::css |
Javascript | x-bootstrap::javascript |
Examples
See tests/Feature/views
for additional examples of usages of the various parameters and layout approaches.
Bootstrap's Components
Accordion
https://getbootstrap.com/docs/5.3/components/accordion/
Badge
https://getbootstrap.com/docs/5.3/components/badge/
Breadcrumb
https://getbootstrap.com/docs/5.3/components/breadcrumb/
Dropdowns
https://getbootstrap.com/docs/5.3/components/dropdowns/
Usage of slots for the items
Navs & Tabs
https://getbootstrap.com/docs/5.3/components/navs-tabs/ Simple "nav" based navigation
Tabs styled navigation
Pills styled navigation
Dropdown as an item
Offcanvas
https://getbootstrap.com/docs/5.3/components/offcanvas/
All Options
Progress
https://getbootstrap.com/docs/5.3/components/progress/
Form
Form
Using method and action.
Using named route
General
Standard Grid
All versions of bootstrap with dependencies
ext-json Version *
laravel/framework Version ~10
symfony/http-foundation Version ^6.4
stonehilt/blade Version ~10