Skip to content

jonth93/laravel-bootstrap-components

 
 

Repository files navigation

Laravel Bootstrap Components

Latest Version on Packagist Total Downloads Software License

Easily use Bootstrap 4 components as Laravel components.

You can help with adding components by creating a pull request.

This is a forked repo. I've updated the package PHP requirements to 7.1.3 and above. I'm currently using this package in Laravel version 8.83.25 without issue. The reason for this is that I'm still using this package in an application that would take a fair amount of work to write it out, considering the original package has now been archived.

Installation

You can install the package via updating your composer.json file

{
"repositories": [
        {
            "type": "vcs",
            "no-api": true,
            "url": "https://github.com/jonth93/laravel-bootstrap-components"
        }
    ],
"require": {
    "jonth93/laravel-bootstrap-components": "^1.0",
    }
}

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.

About

Bootstrap components as Laravel components

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Blade 72.2%
  • PHP 27.8%