Download the PHP package fostam/pharizer without Composer

On this page you can find all versions of the php package fostam/pharizer. 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 pharizer

pharizer

Create phar files / executables from a PHP project file structure.

Features

Install

The easiest way to install pharizer is by using composer:

After installation, it can be called from the following location:

Configuration file

The configuration file specifies the PHARs that should be built and uses the YAML format. Usually, it resides at the top level of your project file structure. The default name is pharizer.yaml.

Example pharizer.yaml:

Main Keys:

Target Keys:

Commands

Build

With the build command, all targets from the pharizer.yaml are built:

To build a single target, append the target name as defined in the pharizer.yaml:

List Files

Similarly to the build command, the list-files command either processes all or a specific target from the configuration file. The command lists all files that match the filters for a target and can be used to test and try out the filters.

Filters

Definition

Filters are defined as a list of include and exclude regular expression (PCRE) patterns. By default, the regular expressions are not anchored, i.e. if you want them to be anchored to the beginning or end of a file path, you have to use ^ or $.

Delimiter escaping is handled internally, so it is not necessary to escape the slash character (/).

Patterns are matched against the full file path of each file under source-directory. The source path itself (including the slash in the beginning) is truncated.

Example: The file /my/app/src/file.php in the source directory /my/app will become src/file.php when applying filter patterns.

Processing

For each file in the source-directory, the patterns are processed in the order in which they have been given in the target filter list. The first pattern that matches determines whether the file is included or excluded. If no pattern matches, the file is included by default. If you want to change the default behaviour to exclude, simply add exclude: ".*" as last filter.

Caveats

YAML Escaping

YAML does not allow characters like *, so when giving a pattern containing an asterisk, put it in single quotes. Avoid double quotes, as they don't work well with backslash escapes.

Anchors

Try to anchor patterns either with ^ and $ or / to avoid unintended matching.

Example:

The pattern include: src would not only match the files in the src directory, but also the "src" part of glibc.c. This can be avoided by anchoring the pattern, e.g. include: ^src/.

Options

Configuration File

By default, pharizer.yaml in the current directory is used as configuration file. With the -c option, an alternative configuration file can be specified:

Verbosity

For each successfully built target, pharizer will print the name and size of the target PHAR file. To turn this off, use the -q (quiet) option.

Return Codes

If no errors occurred, pharizer exits with a return code of 0, otherwise with a return code > 0.


All versions of pharizer with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
ext-phar Version *
symfony/yaml Version ^5.1
symfony/console Version ^5.1
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 fostam/pharizer contains the following files

Loading the files please wait ....