delboy1978uk / cdn
Installs: 2 074
Dependents: 6
Suggesters: 1
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- php: ^8.1
- delboy1978uk/css: ^1.0
- delboy1978uk/icon: ^1.0
README
PHP Class for generating head links and scripts to resources hosted on various CDN's
libraries
- Angular JS
- Bootstrap
- D3
- Del CSS
- Dojo
- FontAwesome
- jQuery
- jQueryUI
usage
Simply echo where required:
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.
For instance, if you used Bootstrap v3.3.2, just pass in 3.3.2
:
echo Cdn::bootstrapJavascript(); // now gives v4.5.3 echo Cdn::bootstrapJavascript('3.3.2'); // you are now upgraded to Del\Cdn v2.x