2017 © Pedro Peláez
 

library pharven

Pharven bundles your vendor directory into a PHP Archive (PHAR)

image

danelsan/pharven

Pharven bundles your vendor directory into a PHP Archive (PHAR)

  • Tuesday, March 6, 2018
  • by danelsan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Pharven

Build
Status, (*1)

If you have ever needed to commit your vendor/ directory into your project repository then Pharven was built for you., (*2)

Pharven bundles your vendor directory into a single PHP Archive (PHAR) and allows you to commit and deploy a single file instead of your entire vendor/ directory., (*3)

Installation

Add Pharven to your project using Composer:, (*4)

composer require cdtweb/pharven

Usage

Add pharven.json to your project root with the following content:, (*5)

{
    "mount_dirs": [
        "src"
    ]
}

mount_dirs are important if you are using Composer to autoload your project classes. .phar files act as their own file system, so if your classes aren't mounted, they won't be visible to the Composer autoloader., (*6)

Run Pharven to create/update your PHAR file:, (*7)

php vendor/bin/pharven

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

<?php
require __DIR__ . '/pharven.phar';

The Versions

06/03 2018

dev-master

9999999-dev https://github.com/danelsan/pharven

Pharven bundles your vendor directory into a PHP Archive (PHAR)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Clint Tyler

composer phar

08/05 2017

0.1.1

0.1.1.0 https://github.com/cdtweb/pharven

Pharven bundles your vendor directory into a PHP Archive (PHAR)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Clint Tyler

composer phar

08/05 2017

0.1.0

0.1.0.0 https://github.com/cdtweb/pharven

Pharven bundles your vendor directory into a PHP Archive (PHAR)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Clint Tyler

composer phar