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.
Download ondram/ci-detector-standalone
More information about ondram/ci-detector-standalone
Files in ondram/ci-detector-standalone
Package ci-detector-standalone
Short Description Standalone CLI command to detect continuous integration server and provide unified access to properties of current build
License MIT
Informations about the package ci-detector-standalone
CI Detector standalone command
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
ext-mbstring Version *
laminas/laminas-filter Version ^2.7
ondram/ci-detector Version =3.4.0
symfony/console Version ^4.0 || ^5.0