marvinlabs/laravel-html-bootstrap-4 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

marvinlabs/laravel-html-bootstrap-4

最新稳定版本:V1.9.0

Composer 安装命令:

composer require marvinlabs/laravel-html-bootstrap-4

包简介

A fluent html builder for Bootstrap 4 components

README 文档

README

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 bonjour@vincentprat.info 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.

统计信息

  • 总下载量: 19.76k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 42
  • 点击次数: 0
  • 依赖项目数: 3
  • 推荐数: 0

GitHub 信息

  • Stars: 42
  • Watchers: 3
  • Forks: 16
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-11-15