faryar/cdnjs
Composer 安装命令:
composer require faryar/cdnjs
包简介
this is for cdnjs
README 文档
README
laravel faryar/cdnjs is a laravel blade package for fast and cleaner laravel programming.
Description
by using this package your app will get libraries from
cdnjs.com and save library link in storage for next time
in the other words just in first time package will request to cdnjs for check package exists and get link
installation
no need config anything install latest version with
composer require faryar/cdnjs
usage
in blade file
@cdnjs('library_name')
@cdnjs('bootstrap.css')
@cdnjs('jquery.js')
@cdnjs('jquery.min.js')
or use array
@cdnjs(['jquery.min.js','bootstrap.css','select2.js,'vue.js'])
output for js
<script src="library address"></script>
output for css
<link rel="stylesheet" href="library address" />
TODO
- support auto laod to laravel provider
- array support
- detect local libraries
- create new config file
- select version of library
- download libraries offline of library
统计信息
- 总下载量: 26
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-10-27
