• Stars
    star
    122
  • Rank 291,044 (Top 6 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 9 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Create Phar of Composer based PHP application

PharBuilder

Create a Phar (PHp ARchive) file of your Composer based PHP application

Installation

Composer

composer require macfja/phar-builder

Phar archive

You can download the Phar directly on GitHub in the release section (https://github.com/MacFJA/PharBuilder)

Usage

Within a composer based project

vendor/bin/phar-builder

With the phar

phar-builder.phar package path-to-your-composer.json-file

Command package

Extract from the vendor/bin/phar-builder help package command

Description:
  Generate a Phar from a composer.json

Usage:
  package [options] [--] [<composer-json>]

Arguments:
  composer-json                  The path to the composer.json file.
                                 If the argument is not defined, search of a composer.json inside the current directory

Options:
      --output=OUTPUT            Where to output the Phar
      --name=NAME                The name of the Phar
      --no-dev                   Do not include dev dependencies
      --dev                      Include dev dependencies
      --no-shebang               Do not add/remove shebang
      --shebang                  Ensure that a shebang is used
      --entry-point=ENTRY-POINT  The file to include when the Phar is executed/called
      --included=INCLUDED        The list (separate by ",") of path to add in the Phar
      --excluded=EXCLUDED        The list (separate by ",") of path to exclude in the Phar
      --bz2                      Use the BZip2 compression for the Phar
      --gzip                     Use the GZip compression for the Phar
      --flat                     Do not compress the Phar
  -h, --help                     Display this help message
  -q, --quiet                    Do not output any message
  -V, --version                  Display this application version
      --ansi                     Force ANSI output
      --no-ansi                  Disable ANSI output
  -n, --no-interaction           Do not ask any interactive question
  -v|vv|vvv, --verbose           Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

More information about the Composer configuration

Similar projects

License

The MIT License (MIT). Please see License File for more information.

More Repositories

1

svelte-persistent-store

A Svelte store that keep its value through pages and reloads
TypeScript
239
star
2

php-redisearch

PHP Client for RediSearch
PHP
66
star
3

svelte-undoable

Memento design pattern in Svelte
TypeScript
45
star
4

svelte-oauth2

OAuth2 authorization for Svelte
TypeScript
39
star
5

OBD2

OBD2 Object interface for JAVA
Java
31
star
6

svelte-adapter-multi

A Svelte adapter that launch other adapters
JavaScript
16
star
7

svelte-adapter-neutralino

A SvelteKit adapter to generate a Neutralinojs application
JavaScript
16
star
8

enyo2-lib

JavaScript
15
star
9

svelte-p5

Small wrapper around P5 for Svelte
Svelte
10
star
10

Symfony-Console-Filechooser

Filechooser Helper for Symfony console (with autocompletion support)
PHP
9
star
11

sveltekit-session

Session management for SvelteKit
TypeScript
8
star
12

browser-storage-store

Set of Store that can use your browser Storage API to persist data.
JavaScript
4
star
13

svelte-expirable

A Svelte store with items that expire
TypeScript
4
star
14

svelte-invalidable

A Svelte that can be requested to update itself
TypeScript
4
star
15

Doctrine-TestSet

PHP
3
star
16

js-serializer

Transform any object, class, array, primitive to a serialized string and vice-versa
TypeScript
3
star
17

phpqa-extensions

More tools for PHPQA
XSLT
3
star
18

svelte-scroll-video

A component to play a video by scrolling the page
Svelte
3
star
19

livres

Keep track of your books
PHP
3
star
20

MpvService

Set of classes to manipulate Mpv media player
Java
3
star
21

sveltekit-cas

CAS/SSO integration in SvelteKit
TypeScript
2
star
22

ComposerClassRewrite

Rewrite any class of a composer based project
PHP
2
star
23

ChainConfig

A configuration loader, where order matters.
PHP
2
star
24

tracy-doctrine-sql

A Tracy panel for Doctrine SQL queries
HTML
2
star
25

value-provider

Get/Set object value with its getter/setter/property/metadata
PHP
2
star
26

phptransformer-twital

Twital support for PHPTransformers
PHP
2
star
27

OBD2Service

A Service for the OBD2 library
Java
2
star
28

BookRetriever

Library to retrieve data about books
PHP
2
star
29

enyo2.tmbundle

A TextMate bundle for Enyo 2
1
star
30

polyfill-registry

List of all (most of) polyfills for PHP
PHP
1
star
31

PhpKVO

KVO (Key Value Observing) design pattern in PHP.
PHP
1
star
32

Math

A set of tools around Mathematics.
PHP
1
star
33

CitiesBorder

Extract cities border from OpenStreetMap
Java
1
star
34

validator

Validator is a simple way to validate a property or an object.
PHP
1
star
35

Injector

Classes injector. Injection can be done in constructors, setters, properties and methods
Java
1
star