2017 © Pedro Peláez
 

library paerius

Bundles your vendor directory into a PHP Archive (PHAR)

image

axute/paerius

Bundles your vendor directory into a PHP Archive (PHAR)

  • Thursday, March 15, 2018
  • by axute
  • Repository
  • 1 Watchers
  • 1 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Paerius

Bundles your vendor directory into a single PHP Archive (PHAR)., (*1)

Requirements

php.ini edit phar settings:, (*2)

; http://php.net/phar.readonly
phar.readonly = Off
; http://php.net/phar.require-hash
phar.require_hash = Off

Installation

Add Pmt to your project using Composer:, (*3)

composer require axute/paerius

Files that will be deleted

See Paerius.php at class fields for files that will be deleted (in vendor path)., (*4)

Usage

Run the binary to create/update your PHAR file:, (*5)

php vendor/bin/paerius

Compression

Files in phar archive will be tried to compress., (*6)

PHP Extension is required (optionaly)., (*7)

force special compression (bz2/gz/none), (*8)

default is bzip2 (if installed, fallback gzip if installed, fallback none), (*9)

bzip2 < gzip < none, (*10)

php vendor/bin/paerius bz

php vendor/bin/paerius gz

php vendor/bin/paerius none

A new file named vendor.phar will be added to your working directory (project root). Update your bootstrap to include ./vendor.phar instead of vendor/autoload.php and you're good to go., (*11)

$autoload = require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor.phar';
$autoload->addPsr4('[YOUR NAMESPACE]',__DIR__.DIRECTORY_SEPARATOR.'src');

Automate

To generate vendor.phar automaticly, add the following lines to your composer.json, (*12)

"scripts": {
    "post-install-cmd": "vendor/bin/paerius",
    "post-update-cmd": "vendor/bin/paerius"
}

The Versions

15/03 2018

dev-master

9999999-dev https://github.com/axute/paerius

Bundles your vendor directory into a PHP Archive (PHAR)

  Sources   Download

MIT

The Requires

  • php >=7.2

 

by Avatar axute

composer phar vendor

15/03 2018

0.9

0.9.0.0 https://github.com/axute/paerius

Bundles your vendor directory into a PHP Archive (PHAR)

  Sources   Download

MIT

The Requires

  • php >=7.2

 

by Avatar axute

composer phar vendor