PHP code example of codememory / asset
1. Go to this page and download the library: Download codememory/asset library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
codememory / asset example snippets
use Codememory\Components\Asset\Asset;
Alias('i-github'); // public/Assets/images/icons/github.png
echo $asset->getPathByAliasWithVersion('i-github'); // public/Assets/images/icons/github.png?v=d41d8cd98f00b204e9800998ecf8427e
echo $asset->getPath('img/logo.png') // public/Assets/img/logo.png