phpcq/travis-configuration-check
CLI tool to validate a project's .travis.yml against composer.json. Ensures required PHP versions are defined and covered in Travis, checks that Travis-listed PHP versions exist, and can fail on unmaintained PHP versions (pre-5.4).
.travis.yml to prevent misconfigurations that cause CI pipeline failures, particularly for Laravel projects where PHP version consistency between composer.json and CI environments is critical..travis.yml configurations before migrating to GitHub Actions or other CI tools, ensuring configurations remain valid post-migration.Adopt when:
.travis.yml.composer.json (e.g., "config.platform.php": "8.1") and .travis.yml to avoid build failures or security risks..travis.yml misconfigurations are a recurring issue.Look elsewhere if:
.travis.yml files.composer.json vs. CI environment).deploy.php, env variables, or forge configurations).For Executives:
*"This tool automates a critical but often manual step in our CI/CD pipeline: ensuring that our .travis.yml files align with the PHP versions declared in composer.json. For Laravel projects, this is especially important because mismatches can lead to build failures, security vulnerabilities, or wasted developer time debugging CI issues. By integrating this lightweight validation tool, we can:
composer.json targets 8.1).For Engineering/DevOps:
*"The phpcq/travis-configuration-check package adds a lightweight but powerful validation layer to our CI/CD pipeline. Here’s how it fits into our workflow:
.travis.yml uses the same PHP versions as composer.json (e.g., no PHP 8.0 in CI if composer.json requires 8.1). This prevents ‘works on my machine’ issues in CI..travis.yml (e.g., PHP 7.2 if Travis no longer supports it).composer scripts) or CI gate (fail builds on misconfigurations).php artisan travis:validate) for Laravel-specific workflows.
Tradeoffs:For Developers:
*"This tool will save you time by catching .travis.yml mistakes before they break your CI pipeline. For example:
composer.json says PHP 8.1 is required, but .travis.yml tests PHP 7.4 → Build fails.composer require --dev phpcq/travis-configuration-check
./vendor/bin/check-travis-configuration.php
Or add it to your composer.json scripts to run automatically. No Laravel-specific changes needed—just better CI reliability."*
How can I help you explore Laravel packages today?