Download the PHP package ondram/ci-detector-standalone without Composer

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

CI Detector standalone command

Latest Stable Version Build Status Coverage Status

Standalone CLI command wrapper for ci-detector PHP library.

It is used to detect continuous integration environment and to provide a unified interface to read the build information. You can use the command to make your scripts (and especially CLI tools) portable for multiple build environments.

The detection is based on environment variables injected to the build environment by continuous integration server. However, these variables are named differently in each CI. This command is based on lightweight ci-detector PHP library, which provides adapter for each supported CI server.

If you need the detection inside PHP script (so you don't need the CLI command), you can just use directly the ci-detector library.

Releases are matched to the versions of the parent ci-detector library. See changelog there for the list of the latest changes.

Usage

See method reference for a documentation of each property.

Dump all available properties

dump command will show all properties detected in current environment by ci-detector:

This is basically a table with output of describe() method of CiInterface (see method reference).

Installation

Install as a standalone PHAR file

CI Detector could be installed as a standalone executable PHAR file (ci-detector.phar). Download latest version from Releases page.

To run CI Detector use command ./ci-detector.phar in the directory where you saved the file (or php ci-detector.phar if the file itself is not executable).

Install using Composer

To run CI Detector use command vendor/bin/ci-detector.

If you need the detection inside PHP script (and you don't need the CLI command), you can just use directly the lightweight ci-detector library.


All versions of ci-detector-standalone with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
ext-mbstring Version *
laminas/laminas-filter Version ^2.7
ondram/ci-detector Version =3.4.0
symfony/console Version ^4.0 || ^5.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 ondram/ci-detector-standalone contains the following files

Loading the files please wait ....