pbmedia/laravel-browser-kit-macro
pbmedia/laravel-browser-kit-macro adds useful macros to Laravel's Browser Kit, extending its fluent HTTP testing API with convenient helpers and assertions so you can write cleaner, more expressive feature tests for Laravel applications.
$this->visit() / $this->see() / assertion-style BrowserKit tests across versions, so QA and engineering keep one mental model instead of running two testing paradigms during a migration window.Adopt when:
Look elsewhere when:
To executives: This is a small, MIT-licensed compatibility shim that lets us upgrade the framework — and now the PHP runtime — without simultaneously rewriting our acceptance test suite. It converts a single large, risky release into smaller, independently shippable ones, protecting the delivery date. Cost is negligible and the project is still receiving maintenance, including current PHP versions. The caveat is unchanged: adoption is minimal, so we own the code once adopted, and we should timebox it.
To engineering: The package is a macro that restores the Laravel 5.3 BrowserKit testing API inside 5.4+ test suites, so existing visit/see tests keep passing after the framework bump. Release 5.9.0 adds PHP 8.5 support via an outside contributor — a good sign that the package is not abandoned, but it is still thin, low-adoption, and trivially forkable. Assume we vendor or fork it and pin the version. It remains a bridge, not a long-term dependency: keep the follow-up ticket to migrate tests to the current stack and remove the shim, and treat the ongoing compatibility work upstream as a convenience rather than a reason to extend the exit date.
How can I help you explore Laravel packages today?