guszandy/laravel-tabler-bootstrap4
Composer 安装命令:
composer require guszandy/laravel-tabler-bootstrap4
包简介
Laravel Package for integrating Tabler template and this package is Laravel Mix friendly.
README 文档
README
Laravel 5.8 and 6.0 Package for integrating Tabler template and this package is Laravel Mix friendly. Currently this package can be integrated easily only on fresh installation. For laravel >= 7.0, you can use develop branch.
Pre-Installation
Before install, you must create the authentication scaffolding manually
- for Laravel 5.8
php artisan make:auth
- for Laravel >= 6.0
- First install laravel/ui package from composer
composer require laravel/ui - And then, run code below
php artisan ui vue --auth
- First install laravel/ui package from composer
Installation
composer require guszandy/laravel-tabler-bootstrap4
For laravel >= 7.0, use this:
composer require guszandy/laravel-tabler-bootstrap4:dev-develop
Run this code below to implement the template,
php artisan make:tabler
Let's see what we've installed. First, make sure that you've already ran php artisan migrate command, then do
php artisan serve
Viola! a Laravel site using Tabler is running right now.
Configuration and Views Customization
Config
To publish this package config to your app config, run this code below
php artisan vendor:publish --provider="GusZandy\Tabler\Providers\AppServiceProvider" --tag="config"
Views
To publish this package views so you can customize on your own, run this code below
php artisan vendor:publish --provider="GusZandy\Tabler\Providers\AppServiceProvider" --tag="views"
Next Step
First of all, you should understand how to use Laravel Mix and install latest laravel-mix.
Tabler need some package on npm. First you need to run
npm install
Install Tabler needed package from npm
npm install --save-dev bootstrap bootstrap-sass popper.js chart.js d3 font-awesome jquery-circle-progress jvectormap moment requirejs select2 select2-bootstrap-theme selectize sparkline tabler-ui tablesorter bootstrap-datepicker eonasdan-bootstrap-datetimepicker @ttskch/select2-bootstrap4-theme
Run Laravel Mix command
npm run development
or use production minimize output
npm run production
Then have a good look on these files
webpack.mix.jsresources/assets/js/tabler.jsresources/assets/sass/tabler.scss
Happy experimenting!
How to use components in this package
1. Panel
@component('tabler::components.panel', [ 'title' => 'Welcome' ]) @slot('tools') <a href="#" class="card-options-collapse" data-toggle="card-collapse"><i class="fe fe-chevron-up"></i></a> <a href="#" class="card-options-remove" data-toggle="card-remove"><i class="fe fe-x"></i></a> @endslot You are logged in! @endcomponent
2. Alert
@component('tabler::components.alert', [ 'type' => 'info' ]) @slot('text') This is an alert component. @endslot @endcomponent
3. Button
@component('tabler::components.button', [ 'type' => 'info', 'url' => 'www.google.com' ]) @slot('text') This is a button component. @endslot @endcomponent
4. Tabs
@component('tabler::components.tabs', [ 'nav_tabs' => 'info' ]) @slot('tab_panes') This is a tab component. @endslot @endcomponent
guszandy/laravel-tabler-bootstrap4 适用场景与选型建议
guszandy/laravel-tabler-bootstrap4 是一款 基于 CSS 开发的 Composer 扩展包,目前已累计 845 次下载、GitHub Stars 达 32, 最近一次更新时间为 2019 年 09 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「admin」 「package」 「composer」 「laravel」 「dashboard」 「bootstrap 4」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 guszandy/laravel-tabler-bootstrap4 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 guszandy/laravel-tabler-bootstrap4 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 guszandy/laravel-tabler-bootstrap4 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
2lenet/EasyAdminPlusBundle
Analysis module for finding problematical shop data.
This composer plugin enables installation of GravityForms WordPress plugin and its addons.
Simple ASCII output of array data
统计信息
- 总下载量: 845
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 32
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-09-05