Skip to content

a laravel blade package for easy access to cdnjs libraries

Notifications You must be signed in to change notification settings

faryar76/laravel-cdnjs-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 

Repository files navigation

laravel-cdnjs-package

logo

Latest Stable Version Total Downloads Latest Unstable Version Software License StyleCI Code Coverage

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

About

a laravel blade package for easy access to cdnjs libraries

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages