Code Monkey home page Code Monkey logo

laravel-html-bootstrap-4's Introduction

Bootstrap 4 fluent HTML builder

Latest Version on Packagist Software License Total Downloads

About

This package is an extension on top of Spatie laravel-html package to easily produce Bootstrap 4 markup.

Installation

You can install the package via composer:

composer require marvinlabs/laravel-html-bootstrap-4

If you are using Laravel 5.5, the service provider and facade will automatically be discovered.

On earlier versions, you need to do that manually. You must install the service provider:

// config/app.php
'providers' => [
    ...
    MarvinLabs\Html\Bootstrap\BootstrapServiceProvider::class,
    Appstract\BladeDirectives\BladeDirectivesServiceProvider::class, // Required if not already there
];

And optionally register an alias for the facade.

// config/app.php
'aliases' => [
    ...
    'BS' => MarvinLabs\Html\Bootstrap\Facades\Bootstrap::class,
];

Documentation

Documentation is still a work in progress. You are welcome to help document features if you want to contribute.

Usage

Depending on the component, you will either need to call some methods or use Blade components.

Blade components

Components based on Blade can fully be overridden. You will need to publish the package views to resources/views/vendor/bs with the command:

php artisan vendor:publish --provider="MarvinLabs\Html\Bootstrap\BootstrapServiceProvider" --tag="views"

Translations

Translations can fully be overridden. You will need to publish the package language files to resources/lang/vendor/bs with the command:

php artisan vendor:publish --provider="MarvinLabs\Html\Bootstrap\BootstrapServiceProvider" --tag="lang"

Changelog

Please see CHANGELOG for more information what has changed recently.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

  • Adam Wathan for the bootforms package which has been very helpful until it got dropped
  • Spatie agency for the laravel-html package
  • Appstract team for the laravel-blade-directives package and some BS4 blade components

License

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

laravel-html-bootstrap-4's People

Contributors

axyr avatar jyhsu2000 avatar vpratfr avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.