Download the PHP package greencape/php-versions without Composer

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

GreenCape/php-versions

Code Climate Latest Stable Version standard-readme compliant

A utility class to provide a list of all PHP versions and their matching xDebug version.

GreenCape/php-versions is designed for use in automated build environments, as it provides the download information for any (stable) PHP version since 3.0.18.

Table of Contents

Install

GreenCape/php-versions requires PHP 7.4+ with remote file access, and comes with no dependencies except the Symfony console.

Either download this repository and copy src/php-versions.php to your project, or use composer (recommended):

Usage on the Command Line

General Info

Show information about a PHP version

$ php-versions [options] [--] [<php>]
Argument Description
php The PHP version to get the info for. Defaults to 'latest'
Option Description
-f, --format[=FORMAT] The output format. Supported values are 'dump' (default), 'json'

Download URLs

Get the filename or download URL for a PHP version or its signature file

Argument Description
php The PHP version to get the info for. Defaults to 'latest'
Option Description
--asc Get the URL for the signature file instead of the PHP source
-f, --format[=FORMAT] The requested compression format, one of 'bz2', 'gz', or 'xz'
-u, --url If set, the full URL is returned. if not, just the filename

GPG Keys

Get the GPG keys for a PHP distribution file

Argument Description
php The PHP version to get the info for. Defaults to 'latest'

Hashes

Get the sha256 or md5 hash for a PHP distribution file

Argument Description
php The PHP version to get the info for. Defaults to 'latest'
Option Description
-f, --format[=FORMAT] The requested compression format, one of 'bz2', 'gz', or 'xz'
-t, --type[=TYPE] The requested hash type, one of 'sha256' (default) or 'md5'

Versions

Show full version number of a PHP version.

Argument Description
php The PHP version to get the info for. Defaults to 'latest'

Usage as PHP Class

The simplest use-case is to determine the current (latest) version of PHP:

This will output

GreenCape/php-versions provides a couple of access methods. See API sections for more information.

Examples

Get the latest release

Get the latest release of the 5.5 branch

Get the latest release of version 4

Get all release numbers of the 4.4 branch

Output:

Get the download info for PHP 5.2.9

Output:

Get the GPG key(s) for PHP 5.4

Output:

Get the XDebug information for PHP 5.4

Output:

API

See separate API documentation.

Contribute

PRs are welcome. If you encounter any bug or issues, please use the issue tracker.

License

The MIT license (MIT).


All versions of php-versions with dependencies

PHP Build Version
Package Version
No informations.
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 greencape/php-versions contains the following files

Loading the files please wait ....