2017 © Pedro Peláez
 

library packager

Library to pack any type of app into PHAR archive or any MvcCore app into single PHP super fast result file.

image

mvccore/packager

Library to pack any type of app into PHAR archive or any MvcCore app into single PHP super fast result file.

  • Monday, June 4, 2018
  • by tomFlidr
  • Repository
  • 1 Watchers
  • 0 Stars
  • 52 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 19 Versions
  • 0 % Grown

The README.md

Packager

Latest Stable Version License PHP Version, (*1)

Features

  • pack PHP MvcCore application into single PHP file
  • pack any PHP application into PHAR archive

Installation

composer require mvccore/packager

Configuration

  • directory with whole app source to pack (/development/...)
  • result index.php file where to store packed result
  • no needs to define PHP scripts order anymore - automatic order detecting by reading PHP scripts
  • exclude patterns by regular expressions to exclude any files or folders from app source
  • string replacements applied on every packed PHP file before minimalization
  • minimalizing PHTML templates
  • minimalizing PHP scripts
  • PHP packing has now 4 options, how implemented file system wrapping functions could behave:
    • strict package mode (\Packager_Php::FS_MODE_STRICT_PACKAGE) (everything is only possible to get from index.php, very fast for specific application types in IIS/PHP/op_cache)
    • strict hard drive mode (\Packager_Php::FS_MODE_STRICT_HDD) (no file system wrapping functions)
    • php library mode (\Packager_Php::FS_MODE_PHP_LIBRARY) (no file system wrapping functions, no PHP code replacements except namespace merge)
    • preserve php package mode (\Packager_Php::FS_MODE_PRESERVE_PACKAGE) (first there is check if it is possible to get anything from index.php, then from hard drive)
    • preserve hard drive mode (\Packager_Php::FS_MODE_PRESERVE_HDD) (first there is check if it is possible to get anything from hard drive, then from index.php)
  • there are implemented those file system wrapping functions and constants:
    • __DIR__ and __FILE__
    • require_once();, include_once();, require();, include();
    • new DirectoryIterator();, new SplFileInfo();
    • readfile();, file_get_contents();
    • file_exists();, is_file();, is_dir();, mkdir(), filemtime();, filesize();
    • simplexml_load_file();, parse_ini_file();, md5_file();
  • possibility to define which file system wrapping functions should be keeped and not wrapped
  • for PHP packing - possibility to define files by extension how to store them inside index.php result
    • pure text
    • php code
    • binary
    • gzipped content
    • base64 encoded content

Examples

The Versions

04/06 2018

dev-master

9999999-dev

Library to pack any type of app into PHAR archive or any MvcCore app into single PHP super fast result file.

  Sources   Download

BSD-3-Clause

The Requires

 

framework mvc packager packing mvccore packed app packing to phar packing to php php packed result super fast php app single file app

10/05 2018

v2.2.3

2.2.3.0

Library to pack any type of app into PHAR archive or any MvcCore app into single PHP super fast result file.

  Sources   Download

BSD-3-Clause

The Requires

 

framework mvc packager packing mvccore packed app packing to phar packing to php php packed result super fast php app single file app

18/04 2018

v2.2.2

2.2.2.0

Library to pack any type of app into PHAR archive or any MvcCore app into single PHP super fast result file.

  Sources   Download

BSD-3-Clause

The Requires

 

framework mvc packager packing mvccore packed app packing to phar packing to php php packed result super fast php app single file app

13/04 2018

v2.2.1

2.2.1.0

Library to pack any type of app into PHAR archive or any MvcCore app into single PHP super fast result file.

  Sources   Download

BSD-3-Clause

The Requires

 

framework mvc packager packing mvccore packed app packing to phar packing to php php packed result super fast php app single file app

13/04 2018

v2.2.0

2.2.0.0

Library to pack any type of app into PHAR archive or any MvcCore app into single PHP super fast result file.

  Sources   Download

BSD-3-Clause

The Requires

 

framework mvc packager packing mvccore packed app packing to phar packing to php php packed result super fast php app single file app

07/10 2017

v2.1.12

2.1.12.0

Library to pack any type of app into PHAR archive or any MvcCore app into single PHP super fast result file.

  Sources   Download

BSD-3-Clause

The Requires

 

framework mvc packager packing mvccore packed app packing to phar packing to php php packed result super fast php app single file app

28/01 2017

v2.1.11

2.1.11.0

Library to pack any type of app into PHAR archive or any MvcCore app into single PHP super fast result file.

  Sources   Download

BSD-3-Clause

The Requires

 

framework mvc packager packing mvccore packed app packing to phar packing to php php packed result super fast php app single file app

28/01 2017

v2.1.10

2.1.10.0

Library to pack any type of app into PHAR archive or any MvcCore app into single PHP super fast result file.

  Sources   Download

BSD-3-Clause

The Requires

 

framework mvc packager packing mvccore packed app packing to phar packing to php php packed result super fast php app single file app

27/01 2017

v2.1.9

2.1.9.0

Library to pack any type of app into PHAR archive or any MvcCore app into single PHP super fast result file.

  Sources   Download

BSD-3-Clause

The Requires

 

framework mvc packager packing mvccore packed app packing to phar packing to php php packed result super fast php app single file app

26/01 2017

v2.1.8

2.1.8.0

Library to pack any type of app into PHAR archive or any MvcCore app into single PHP super fast result file.

  Sources   Download

BSD-3-Clause

The Requires

 

framework mvc packager packing mvccore packed app packing to phar packing to php php packed result super fast php app singlefile app

26/01 2017

v2.1.7

2.1.7.0

Library to pack any type of app into PHAR archive or any MvcCore app into single PHP super fast result file.

  Sources   Download

BSD-3-Clause

The Requires

 

framework mvc packager packing mvccore packed app packing to phar packing to php php packed result super fast php app singlefile app

18/01 2017

v2.1.6

2.1.6.0

Library to pack any type of app into PHAR archive or any MvcCore app into single PHP super fast result file.

  Sources   Download

BSD-3-Clause

The Requires

 

framework mvc packager packing mvccore packed app packing to phar packing to php php packed result super fast php app singlefile app

18/01 2017

v2.1.5

2.1.5.0

Library to pack any type of app into PHAR archive or any MvcCore app into single PHP super fast result file.

  Sources   Download

BSD-3-Clause

The Requires

 

framework mvc packager packing mvccore packed app packing to phar packing to php php packed result super fast php app singlefile app

18/01 2017

v2.1.4

2.1.4.0

Library to pack any type of app into PHAR archive or any MvcCore app into single PHP super fast result file.

  Sources   Download

BSD-3-Clause

The Requires

 

framework mvc packager packing mvccore packed app packing to phar packing to php php packed result super fast php app singlefile app

18/01 2017

v2.1.3

2.1.3.0

Library to pack any type of app into PHAR archive or any MvcCore app into single PHP super fast result file.

  Sources   Download

BSD-3-Clause

The Requires

 

framework mvc packager packing mvccore packed app packing to phar packing to php php packed result super fast php app singlefile app

18/01 2017

v2.1.2

2.1.2.0

Library to pack any type of app into PHAR archive or any MvcCore app into single PHP super fast result file.

  Sources   Download

BSD-3-Clause

The Requires

 

framework mvc packager packing mvccore packed app packing to phar packing to php php packed result super fast php app singlefile app

17/01 2017

v2.1.1

2.1.1.0

Library to pack any type of app into PHAR archive or any MvcCore app into single PHP super fast result file.

  Sources   Download

BSD-3-Clause

The Requires

 

framework mvc packager packing mvccore packed app packing to phar packing to php php packed result super fast php app singlefile app

14/01 2017

v2.1.0

2.1.0.0

Library to pack any type of app into PHAR archive or any MvcCore app into single PHP super fast result file.

  Sources   Download

BSD-3-Clause

The Requires

 

framework mvc packager packing mvccore packed app packing to phar packing to php php packed result super fast php app singlefile app

05/01 2017

v2.0.1

2.0.1.0

Library to pack any type of app into PHAR archive or any MvcCore app into single PHP file.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

framework phar mvc result packager packing mvccore shrinker singlefile