faryar / cdnjs
this is for cdnjs
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 0
Open Issues: 0
Type:laravel
This package is not auto-updated.
Last update: 2025-04-09 02:12:43 UTC
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