PHP Package: ondram/ci-detector

CI detector library for PHP that identifies if a script is running in a continuous integration environment. Detects Travis CI, GitHub Actions, CircleCI, GitLab CI, and more.

Current Version: 4.2.0
Last Updated: Date not available
PHP Requirement: ^7.4 || ^8.0
Dependencies:
ondram/phpunit-html-report-generator
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

The CI Detector PHP library is designed to help developers identify if their PHP scripts are executing within a continuous integration system. It supports detection for popular CI platforms such as Travis CI, GitHub Actions, CircleCI, Jenkins, GitLab CI, and more. This library provides a simple and efficient way to adjust script behavior when running in CI environments.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 4.2.0

Download Download v4.2.0

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/ondram/ci-detector/4.2.0/loader.php';
require_once 'libs/ondram/phpunit-html-report-generator/{lib_version}/loader.php';

use OndraM\CIDetector\CIDetector;

$obj = new CIDetector();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.