Download the PHP package producer/producer without Composer

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

Producer

Producer is a command-line quality-assurance tool to validate, and then release, your PHP library package. It supports Git and Mercurial for version control, as well as Github, Gitlab, and Bitbucket for remote origins (including self-hosted origins).

Installing

Producer works in concert with Composer, PHPUnit, and PHPDocumentor. Please install them first, either as part of your global system, or as part of your package.

Global Install

To install Producer globally, issue composer global require producer/producer.

Be sure to add $COMPOSER_HOME/vendor/bin to your $PATH; instuctions here.

Test the installation by issuing producer at the command line to see some "help" output.

Remember, you will need PHPUnit and PHPDocumentor as well.

Package Install

To install the Producer package as a development requirement for your package issue composer require --dev producer/producer.

Test the installation by issuing ./vendor/bin/producer at the command line to see some "help" output.

Remember, you will need PHPUnit and PHPDocumentor as well.

Configuring

Before you get going, you'll need to create a ~/.producer/config file. Copy and paste the following into your terminal:

You can then edit ~/.producer/config to enter your access credentials, any or all of:

WARNING: Saving your username and password for Bitbucket in plain text is not very secure. Bitbucket doesn't have personal API tokens, so it's either "username and password" or bring in an external OAuth1 library with all its dependencies just to authenticate to Bitbucket. The latter option might show up in a subsequent release.

Package Configuration

Inside your package repository, you may define a .producer/config file that sets any of the following options for that specific package.

Testing Systems: If you want to use a testing system other than PHPUnit, you can set phpunit = /whatever/you/want. As long as it exits non-zero when the tests fail, Producer will work with it properly. Yes, it was short-sighted to name the key phpunit; a future release of Producer may remedy that.

Getting Started

Now that you have Producer installed and configured, change to the directory for your library package repository. From there, you can call the following commands:

NOTE: Producer reads the .git or .hg configuration data from the repository, so it knows whether you are using Github, Gitlab, or Bitbucket as the remote origin.

Validating

When you validate the library package, Producer will:

If any of those fails, then the package is not considered valid for release.

In addition, the validate command will show any open issues from the remote origin, but these are presented only as a reminder, and will not be considered invalidators.

Informational Files

Producer wants you to have these informational files in the package root:

You may override these file names by setting the appropriate .producer/config directives.

Docblocks

Producer will not attempt to check docblocks for 0.*, -dev, or -alpha releases. It seems reasonable to expect that the codebase is not ready for documenting before a beta release.

Releasing

When you release the package, Producer will first validate it as a pre-flight step.

Then it will use the Github or Gitlab API to create a release. In the case of Bitbucket (which does not have an API for releases) it will tag the repository locally.

Finally, Producer will sync with the remote origin so that the release is represented locally, and/or pushed to the remote.


All versions of producer with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0
psr/log Version ~1.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 producer/producer contains the following files

Loading the files please wait ....