/laravel-bootstrap-components

Bootstrap components as Laravel components

Primary LanguageHTMLMIT LicenseMIT

Laravel Bootstrap Components

Latest Version on Packagist Total Downloads Software License

Easily use bootstrap components as Laravel components. Requires Laravel 5.4+

At this moment only Bootstrap 4 is supported. The package is in constant development, meaning new components may be added in the future. You can help with adding components by creating a pull request.

Installation

You can install the package via composer:

composer require appstract/laravel-bootstrap-components

Provider

Then add the ServiceProvider to your config/app.php file:

'providers' => [
    ...

    Appstract\BootstrapComponents\BootstrapComponentsServiceProvider::class

    ....
]

Usage

Examples:

@component('bootstrap::modal')
    This is the content of the modal
@endcomponent

@component('bootstrap::progress', ['value' => 75]) 
    // Extra bars
@endcomponent

More components and documentation in the wiki.

Contributing

Contributions are very welcome! If you want to add a component, please keep the following in mind when creating a pull request:

  • Have a look at the existing components for examples
  • Customization of the component (like custom classes and options for the component)
  • Provide some docs in the Wiki

Thanks to all the contributors

About Appstract

Appstract is a small team from The Netherlands. We create (open source) tools for webdevelopment and write about related subjects on Medium. You can follow us on Twitter, buy us a beer or support us on Patreon.

License

The MIT License (MIT). Please see License File for more information.