slabphp/concatenator

SlabPHP File and Resource Concatenator

v0.1.2 2018-02-20 00:00 UTC

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();