2017 © Pedro Peláez
 

library phpshrink

Library for shrinking of PHP code.

image

czproject/phpshrink

Library for shrinking of PHP code.

  • Wednesday, December 27, 2017
  • by janpecha
  • Repository
  • 1 Watchers
  • 1 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

PHP Shrink

Library for shrinking of PHP code., (*1)

Installation

Download a latest package or use Composer:, (*2)

composer require czproject/phpshrink

PhpShrink requires PHP 5.3.0 or later., (*3)

Usage

``` php <?php $shrinker = new Cz\PhpShrink;, (*4)

// add files
$shrinker->addFile('myfile.php');
$shrinker->addFile('libs.php');

// add array of files
$shrinker->addFiles(array(
    'functions.php',
    'exceptions.php',
));

// or add PHP code
$shrinker->addContent('<?php echo "hello!";');

// get shrinked code
$code = $shrinker->getOutput();

```, (*5)


Based on class by David Grudl., (*6)

David Grudl, https://davidgrudl.com/
Jan Pecha, https://www.janpecha.cz/, (*7)

The Versions

27/12 2017

dev-master

9999999-dev

Library for shrinking of PHP code.

  Sources   Download

The Requires

  • php >=5.3.0

 

06/12 2013

dev-version-1.1.x

dev-version-1.1.x

Library for shrinking of PHP code.

  Sources   Download

The Requires

  • php >=5.3.0

 

The Development Requires

23/07 2013

v1.0.0

1.0.0.0

Library for shrinking of PHP code.

  Sources   Download

The Requires

  • php >=5.3.0