chriscubos/jspack
Composer 安装命令:
composer require chriscubos/jspack
包简介
Laraval collection of public assets packages for your development.
README 文档
README
A LaravelPHP package for your important jQuery libraries preloaded in your [/public/packages] folder. With easy to use blade directives and calls.
Install
Via Composer
$ composer require chriscubos/jspack
Setup [config/app.php]
// add this 'providers' => [ Chriscubos\JsPack\JsPackServiceProvider::class, ],
Usage
<?php echo JsPack::packages(['datatables', 'bootstrap-wysihtml5']);?> <?=JsPack::packages(['datatables', 'bootstrap-wysihtml5']);?> // blade must use {!! !!} {!!JsPack::packages(['datatables', 'bootstrap-wysihtml5'])!!} // Directive @jspack(['datatables', 'bootstrap-wysihtml5'])
Output
<script src='/packages/datatables/dataTables.bootstrap.min.js'></script> <link href='/packages/datatables/dataTables.bootstrap.css' rel='stylesheet'/> <link href='/packages/datatables/jquery.dataTables.min.css' rel='stylesheet'/> <script src='/packages/datatables/jquery.dataTables.min.js'></script> <script src='/packages/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js'></script> <link href='/packages/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css' rel='stylesheet'/>
Change log
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security
If you discover any security related issues, please email chriscubos@outlook.com instead of using the issue tracker.
Credits
- [Christopher John Cubos][link-author]
- [Ethan Sky Cubos][link-author]
- [All Contributors][link-contributors]
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-09-02