Booty is an asset manager for Bone Framework

v1.2.0 2024-03-31 12:57 UTC

This package is auto-updated.

Last update: 2024-12-01 00:07:46 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License
build status Code Coverage Scrutinizer Code Quality
Booty is an asset deployment tool (with an optional cli command for use with Bone Framework). v1.x currently takes an array of source folders with a key, and deploys a symlink to your destination folder (usually your web server's public/ folder)

installation

composer require delboy1978uk/booty

usage

When adding an asset folder, the key name will be converted from any CapsOrCamelCaseEtc to caps-or-camel-case-etc in the symlink, for better URLs.

<?php

use Del\Booty\AssetManager;

$am = new AssetManager();
$am->addAssetsFolder('some', 'some/folder/with/css/js/etc');
$am->addAssetsFolder('another', 'another/folder/with/css/js/etc');
$am->setDestinationFolder('/var/www/html/public/');
$am->deployAssets();

bone cli usage

This command will pick up all Bone Framework src/ and vendor/ packages and use the asset manager to deploy the files to the public/ directory. In your terminal:

bone assets:deploy

or aliased:

bone a:d