Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Ci Detector Laravel Package

ondram/ci-detector

Detects when your PHP app is running in CI. Provides a simple API to identify common CI providers via environment variables, so you can tweak behavior for tests, builds, and deployments without hardcoding provider logic.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Automating environment-specific logic (e.g., skipping flaky tests in CI, using mock APIs for non-production builds)
  • Building dynamic deployment strategies based on CI context (branch, commit hash, build number)
  • Centralizing CI detection logic to avoid fragmented, error-prone hardcoding (e.g., getenv('CI') checks)
  • Enabling traceability in artifacts by embedding build metadata (commit SHA, build URL) into logs and deployments
  • Reducing manual configuration for CI-related checks across teams and projects

When to Consider This Package

  • ✅ Standard CI providers (GitHub Actions, GitLab CI, Travis CI) are used and well-supported by the package
  • ✅ Need for quick, simple CI detection without complex configuration or dependencies
  • ✅ Projects where maintainability of CI checks is a priority over cutting-edge features
  • ❌ Custom or niche CI systems not covered by the package's current detectors
  • ❌ High-stakes production logic where reliability is critical (due to low GitHub score and unclear maintenance)
  • ❌ Projects requiring extensive build metadata beyond what the package reliably provides

How to Pitch It (Stakeholders)

  • Executives: "This lightweight package eliminates manual CI environment checks, reducing deployment errors and saving engineering time. By automatically adapting behavior based on CI context (e.g., skipping tests in CI, embedding build IDs in logs), it accelerates release cycles and improves reliability without additional infrastructure costs. The MIT license ensures zero licensing risk, and integration takes under 15 minutes via Composer."
  • Engineering: "It replaces scattered getenv() calls with a single, testable API. Just instantiate the detector and check isCi() or getBuildNumber()—no complex setup. We can start with basic use cases like conditional test skips and expand to metadata injection. While the repo has moderate stars, the code is simple enough to maintain internally if needed, and it’s fully compatible with Laravel’s service container."
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4