Download the PHP package gavinggordon/assetinc without Composer
On this page you can find all versions of the php package gavinggordon/assetinc. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download gavinggordon/assetinc
More information about gavinggordon/assetinc
Files in gavinggordon/assetinc
Download gavinggordon/assetinc
More information about gavinggordon/assetinc
Files in gavinggordon/assetinc
Vendor gavinggordon
Package assetinc
Short Description A PHP class which provides simple javascript or css asset inclusion.
License MIT
Homepage http://assetinc.gavingordon.com
Package assetinc
Short Description A PHP class which provides simple javascript or css asset inclusion.
License MIT
Homepage http://assetinc.gavingordon.com
Please rate this library. Is it a good library?
Informations about the package assetinc
AssetInc
This class (GGG\AssetInc\AssetInc) provides a simple and quick way to include/add JS or CSS assets to an HTML document's head and/or body.
Installation
composer require gavinggordon/assetinc
Examples
Instantiation:
include_once( __DIR__ . '/vendor/autoload.php' );
$JSasset = \GGG\AssetInc\AssetInc::init( 'js' );
$CSSasset = \GGG\AssetInc\AssetInc::init( 'css' );
JS:
$JSasset->insert( 'jquery' );
// Result: <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
$JSasset->add_asset( ASSET_NAME, ASSET_URL );
$JSasset->insert( ASSET_NAME );
// Result: ASSET_URL
CSS:
$CSSasset->insert( 'font-awesome' );
// Result: <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet">
$CSSasset->add_asset( ASSET_NAME, ASSET_URL );
$CSSasset->insert( ASSET_NAME );
// Result: ASSET_URL
All versions of assetinc with dependencies
PHP Build Version
Package Version
No informations.
The package gavinggordon/assetinc contains the following files
Loading the files please wait ....