https://github.com/cdtweb/pharven
Pharven bundles your vendor directory into a PHP Archive (PHAR)
https://github.com/cdtweb/pharven
composer phar php
Last synced: about 1 year ago
JSON representation
Pharven bundles your vendor directory into a PHP Archive (PHAR)
- Host: GitHub
- URL: https://github.com/cdtweb/pharven
- Owner: cdtweb
- License: mit
- Created: 2017-03-15T16:16:31.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-03-13T22:20:35.000Z (about 8 years ago)
- Last Synced: 2025-04-10T23:17:07.946Z (about 1 year ago)
- Topics: composer, phar, php
- Language: PHP
- Homepage: https://github.com/cdtweb/pharven
- Size: 18.6 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Pharven
=======
[](https://travis-ci.org/cdtweb/pharven)
If you have ever needed to commit your `vendor/` directory into your project repository then Pharven was built for you.
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.
## Installation
Add Pharven to your project using Composer:
composer require cdtweb/pharven
## Usage
Add `pharven.json` to your project root with the following content:
{
"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.
**Run Pharven to create/update your PHAR file:**
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.