Weave 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

Behat Deprecation Extension Laravel Package

caciobanu/behat-deprecation-extension

A Behat extension that captures PHP deprecation notices raised during your scenarios and surfaces them in the test output, making it easy to track down and fix deprecated code before upgrading dependencies or PHP versions. Keeps your test suite clean and your upgrades predictable.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Upgrade roadmap sequencing: Quantify PHP deprecations exercised by behavior tests to decide whether a Laravel/PHP upgrade is safe to schedule or needs a cleanup sprint first.
  • Quality-gate policy: Decide whether deprecations should warn, report, or block CI based on volume, ownership, and release risk.
  • Build vs buy: Evaluate adopting a small MIT-licensed Behat extension versus writing an internal Behat lifecycle listener; the feature surface is narrow enough that an internal build is plausible, but buying is reasonable for a quick signal in an existing Behat suite.
  • Technical-debt prioritization: Map deprecated API usage to scenarios, features, and owners so remediation work can be assigned and measured.
  • Release readiness: Use deprecation counts as a pre-release risk signal for framework, vendor SDK, and internal API sunset work.
  • Use cases: Legacy PHP modernization, framework upgrades, vendor dependency cleanup, behavior-test observability, and deprecation “budget” tracking. Note: this is Behat-specific, not a Laravel-native testing tool, so value depends on Behat already being part of the stack.

When to Consider This Package

  • Consider it when:

    • The team already runs Behat suites for PHP services or Laravel-adjacent legacy applications.
    • PHP deprecations are currently noisy, ignored, or discovered late in upgrades.
    • There is an upcoming PHP/framework/vendor upgrade and the team needs evidence from behavior tests.
    • A lightweight, MIT-licensed tactical tool is acceptable and can be validated against the current PHP/Behat versions.
    • The organization wants deprecation visibility without building a custom listener immediately.
  • Look elsewhere when:

    • The test suite is Pest/PHPUnit-only; use PHPUnit deprecation handling, static analysis, or CI error reporting instead.
    • Active maintenance, modern PHP 8.2+ support, or vendor guarantees are required without forking.
    • The need is static analysis, production deprecation monitoring, cross-suite dashboards, or ownership tracking.
    • Deprecations must be aggregated across many repositories and tied into APM/observability tooling.
    • The last release date (2020) and low adoption signal are unacceptable risks for the team’s dependency policy.

How to Pitch It (Stakeholders)

  • Executives: “This is a low-cost risk-reduction tool for PHP/Laravel upgrade work. It surfaces deprecated API usage during existing behavior tests before it becomes a production break. It is MIT-licensed and small, but should be treated as tactical because the package has not been actively released since 2020.”
  • Engineering: “It plugs into Behat’s lifecycle, collects PHP deprecations per scenario, and reports them with test results. Use it as a pre-upgrade audit and CI warning gate. Validate compatibility with current PHP/Behat, pin the version, and be prepared to fork or replace it with a small internal listener if needed. It does not replace static analysis or production monitoring.”
  • Product: “Use deprecation trends as a leading indicator in roadmap reviews. Define warn-versus-block thresholds, assign cleanup owners by feature area, and tie remediation to upgrade milestones so deprecation work is planned rather than discovered mid-release.”
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.
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package