New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

addvilz/pharaoh

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

addvilz/pharaoh

Library to simplify .phar build scripts

Source
Packagist
Version
v1.0.3
Version published
Total downloads
145
Maintainers
1
Created
Source

Addvilz/pharaoh

Library to simplify .phar build scripts.

Usage:

Create a new file, for example, build.php:

#!/usr/bin/env php
<?php

$composer = (new \Symfony\Component\Finder\Finder())
    ->files()
    ->ignoreVCS(true)
    ->name('*.php')
    ->exclude(['test', 'tests', 'spec'])
    ->in(__DIR__ . '/vendor/');

$src = (new \Symfony\Component\Finder\Finder())
    ->files()
    ->ignoreVCS(true)
    ->name('*.php')
    ->in(__DIR__ . '/src/');

$builder = (new \Addvilz\Pharaoh\Builder('myapp.phar', __DIR__, __DIR__))
    ->addFinder($composer)
    ->addFinder($src)
//    ->addFile('LICENSE')
//    ->addFile('README.md')
    ->build('index.php') // file that contains the "index" code of your app
;

FAQs

Package last updated on 07 Feb 2016

Related posts