2017 © Pedro Peláez
 

library cdn

image

delboy1978uk/cdn

  • Saturday, February 6, 2016
  • by delboy1978uk
  • Repository
  • 1 Watchers
  • 0 Stars
  • 379 Installations
  • PHP
  • 4 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 13 % Grown

The README.md

cdn

PHP Class for generating head links and scripts to resources hosted on various CDN's, (*1)

libraries

  • Angular JS
  • Bootstrap
  • D3
  • Del CSS
  • Dojo
  • FontAwesome
  • jQuery
  • jQueryUI

usage

Simply echo where required:, (*2)

echo Del\Cdn::angularJavascript('1.5.6');
// output 
// <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular.min.js"></script>

changelog

Default versions have changed in v2.x, just pass in the old version number where you call the code., (*3)

For instance, if you used Bootstrap v3.3.2, just pass in 3.3.2:, (*4)

echo Cdn::bootstrapJavascript(); // now gives v4.5.3
echo Cdn::bootstrapJavascript('3.3.2'); // you are now upgraded to Del\Cdn v2.x

The Versions