Download the PHP package kael-shipman/philer without Composer

On this page you can find all versions of the php package kael-shipman/philer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package philer

Philer

Philer is yet another attempt at an easy phar compiler. I needed to roll my first phar the other day and set to work researching how to do it. I found a bunch of libraries, but they all involved weird php build files and stuff.

I decided to take my cue from Composer and base this compiler on a json (actually hjson) config file in the root of the package called philer.hjson that defines how to create the phar.

(The name of the project is from PHar CompILER.)

Usage

Usuage is pretty simple. Just create your config file and call philer compile from the root of your repo. Depending on your config, that will put one or more phar files in the build directory of your choosing.

Installation

I'm a strong believer in the right package manager for the job, and since this is meant to be a system-wide executable, the right package manager is the one your OS provides (apt, yum, brew, etc).

HOWEVER, the only OS package I've made for it so far is the deb package, which you can get from my package repo. For the rest, you can just download the built phar directly (via the github release page or by just downloading build/philer out of this repo) and place it in your path.

Technically, you can also install it on a per-project basis via composer (it'll show up at vendor/bin/philer). That's cool and all, but I prefer having a system-wide binary.

"Compiling" From Source

philer can be compiled from source by simply running composer install && php ./src/bootstrap.php compile from the repo root.

Config

Configuration files are all the same, whether global or local. As mentioned above, all configuration files are written in hjson and should end in .hjson. However, hjson is backward compatible with json, so feel free to write them in plain old json if you'd like.

Configuration files are found in the following locations:

  1. /etc/philer/config.hjson -- optional machine-global config, useful for things like global ignores, etc.
  2. /etc/philer/config.d/ -- optional machine-global config fragments (alphabetized)
  3. /home/$USER/.config/philer/config.hjson -- optional user-specific config
  4. $REPO/philer.hjson -- mandatory main config file

Final config is composed by merging all of these down from 4 to 1, where config values defined in 4 override those in 3, etc.

Here's a sample config file that should give you an idea of how to use the system:

Here's a brief rundown of the demonstrated config keys:

To-do


All versions of philer with dependencies

PHP Build Version
Package Version
Requires ext-mbstring Version *
nategood/commando Version ~0.2.9
kael-shipman/php-executables Version ~0.5.0
laktak/hjson Version ^2.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kael-shipman/philer contains the following files

Loading the files please wait ....