faryar/cdnjs

this is for cdnjs

1.0.2 2018-10-29 08:25 UTC

This package is not auto-updated.

Last update: 2024-05-21 21:55:53 UTC


README

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