Download the PHP package barkley/create-phar without Composer

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

create-phar

Overview

This project will aid in creating PHP projects that following Barkley's typical development flow, and will allow the creation of versioned PHAR files for projects to be easily distributed to systems that are detached from any code repository.

Barkley's PHP development process is ever-changing, so updates and changes to this project will likely shift around frequently as well. However, backwards-compatibility will always be important as we move forward. We will intend to support the ability to disable any new features that get added.

Setup

Composer

Composer support has been introduced in v2.0.0, and is relatively fresh, so proceed with caution. This will be supported on Linux.

Install

Install the Composer package barkley/create-phar (see Packagist).

Version set to dev-master will pull directly from the master branch, which may include work-in-progress changes. It is suggested to lock your install to a specific version instead.

create-phar needs to be installed in the root of your project, rather than the source directory. The initialization will help structure the project.

Usage

Once installed, the following script, run from the root of your project, will allow access to all create-phar logic.

Prior to version 2.1.1, you would need to use the following script:

(Anytime instructions below refer to the command create-phar, you will need to use this path instead)

Windows

Add the directory for the create-phar project to your system's PATH variable. If done correctly you should see output when you type create-phar in your system's terminal.

Project Initialization

To initialize a new project, create an empty directory for it, and within it run the command create-phar init.

The project will be named and namespaced based on the current directory. For example, if you run create-phar init in the directory c:\TestProject\, your project will have the name Testproject and be in the namespace rei\TestProject.

Configuration

TO DO

Project Build

To build projects after initialization, simply run the command create-phar within the project directory.

If you want to change the version number for the project, run the command followed by the new version number. For example create-phar 1.2.4.

Run Flags


All versions of create-phar with dependencies

PHP Build Version
Package Version
Requires knplabs/github-api Version ^3.0
symfony/http-client Version ^6.2
nyholm/psr7 Version ^1.8
php Version >=8.1
symfony/console Version ^6.3
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 barkley/create-phar contains the following files

Loading the files please wait ...