Giter VIP home page Giter VIP logo

pharmaker's Introduction

PHAR MAKER

Simple PHAR build tool to convert a directory into a PHAR archive

Basic Concepts

Source Directory: The directory that contains the source php files.
PHAR Name: The name which identifies the Phar. The name is used to generate the phar archive as well as to refer to the archive in phar:// steam contexts.
CLI Script: The script which is executed when the archive is run from the command line. index.php is assumed if not provided.
Web Script: The script which is by default executed in the web environment. Defaults to CLI script value if not provided with.

Building Basics

./makephar <source dir> <phar name> [<cli script> <web script>]

Example: The following command will create a phar archive named mphar.phar with cli.php as cli script and web.php as the web script

./makephar src mphar.phar cli.php web.php

==========: STARTING PHAR BUILD PROCESS :==========
Source Directory: src
PHAR Name: mphar.phar
CLI Script: cli.php
Web Script: web.php
DONE: Built mphar.phar

Checkout the "src" directory for sample cli and web script

pharmaker's People

Contributors

masnun avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.