slabphp / concatenator
SlabPHP File and Resource Concatenator
v0.1.2
2018-02-20 00:00 UTC
Requires
- guzzlehttp/guzzle: ^6.3
- psr/log: ^1.0
- psr/simple-cache: ^1.0
- salernolabs/collapser: ^0.1.0
Requires (Dev)
- phpunit/phpunit: ^6.5
Suggests
- guzzlehttp/guzzle: Allows the use of the built-in URL item.
- salernolabs/collapser: Allows the use of the built-in collapse filters.
This package is auto-updated.
Last update: 2024-12-22 06:42:26 UTC
README
SlabPHP File and Resource Concatenator, used in conjunction with the SlabPHP media concatenator controller.
Installation
composer require slabphp/concatenator
Usage
Create a manager:
$manager = new \Slab\Concatenator\Manager();
Set it up for where to look for files:
$manager
->setFileSearchDirectories([__DIR__ . '/resources'])
->addObject('css/test.css', [])
->addObject('css/something.css', [])
->concatenateObjectList();
Then just concatenate it:
$output = $manager->getOutput();