2017 © Pedro Peláez
 

library pharven

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

image

cdtweb/pharven

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

  • Tuesday, March 13, 2018
  • by cdtweb
  • Repository
  • 1 Watchers
  • 2 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 4 Versions
  • 50 % 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 very 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 and you will run into problems., (*6)

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

php vendor/bin/pharven

A 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';

At this point you can add vendor/ to your .gitignore file and commit your pharven.phar file instead., (*9)

The Versions

13/03 2018

dev-master

9999999-dev 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

13/03 2018

0.1.2

0.1.2.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.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