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

Wp Browser Laravel Package

lucatume/wp-browser

wp-browser integrates WordPress with Codeception, giving you acceptance, functional, and integration testing out of the box. It handles WordPress installation, database setup, and bootstrapping so you can write reliable tests for plugins, themes, and full sites.

Deep Wiki
Context7

Technical Evaluation

Architecture fit

lucatume/wp-browser is a Codeception extension for testing WordPress — not a Laravel package. It ships Codeception modules (WPBrowser, WPWebDriver, WPDb, WPFilesystem, WordPress) that bootstrap a real WordPress installation, wrap $wpdb with table-prefix awareness, scaffold plugins/themes/mu-plugins per test, and expose fixture-style hooks into the WordPress load cycle. There is no service provider, no Artisan command, and no Laravel testing integration. For a Laravel codebase it is architecturally neutral — it neither conflicts nor contributes. Fit is high only where the organization owns WordPress plugins, themes, or a WordPress-backed content surface; in a pure Laravel test suite it is dead weight alongside Pest/PHPUnit and Laravel's own HTTP/database fakes.

Integration feasibility

High in a WordPress repo: composer require --dev, a codeception.yml, a wp-tests bootstrap, and a MySQL target. Medium-to-low as a cross-boundary tool in a Laravel monorepo — it would live in a separate composer.json and a separate CI job, never on Laravel's test runner. Prerequisites are non-trivial: MySQL/MariaDB instance, a writable web root for acceptance tests, Chrome/Chromedriver for WPWebDriver, and ideally WP-CLI for DB snapshot/restore.

Technical risk

  • Provenance gap. The repository field is unknown and the last-release date (2026-08-26) is inconsistent with a normal cadence. Before adoption, verify the canonical upstream, tag signatures, and that the Packagist entry maps to the audited source. Pin to a tag or commit SHA and mirror internally if needed.
  • Low relative score (22.2) with 637 stars suggests strong niche utility but limited ecosystem breadth — bus-factor and long-term maintenance are the real risks, not code quality.
  • Version-matrix churn. Codeception 4 → 5 and PHP 7.4 → 8.x transitions have historically required suite rewrites; WordPress core updates periodically break fixture assumptions.
  • Isolation risk. Tests share a real database and filesystem; leakage across suites is the most common source of false greens.

Key questions

  1. Which repos — if any — actually contain WordPress plugins, themes, or a WP-backed CMS?
  2. Is browser-level acceptance testing already covered by another tool (Playwright, Cypress, Dusk)?
  3. Does CI provide a MySQL service and a headless Chrome runner today?
  4. Who owns test infrastructure, and is there appetite for a second test framework alongside Laravel's?
  5. What is the security-review requirement for a single-maintainer MIT dependency with unverified provenance?

Integration Approach

Stack fit

Treat this as a WordPress-surface tool only. Where a Laravel application integrates with WordPress (shared database, headless WP via REST/GraphQL, SSO bridge), keep the two suites separate and assert the contract at the boundary: Laravel-side tests mock the WP API; WP-side acceptance tests via wp-browser verify the WordPress half. Do not attempt to co-locate both in one Composer package — PHPUnit/Codeception version constraints will collide.

Migration path

  1. Audit provenance and pin the version.
  2. Stand up an isolated Docker image (PHP + MySQL + Chrome) and run the package's own smoke suite to confirm the matrix.
  3. Convert one existing WordPress plugin/theme repo's manual QA checklist or ad-hoc PHPUnit tests into Codeception suites — start with WPDb + WordPress (fast, no browser), add WPWebDriver only for critical journeys.
  4. Leave all Laravel test suites untouched; add the new job as a parallel CI workflow.

Compatibility

Confirm PHP 7.4–8.3 support against your runtime, Codeception 4 vs 5, WordPress 6.x, MySQL 5.7/8.0, and Chromedriver version alignment with the Chrome image. Multisite support exists but requires additional configuration — validate if any target site is multisite.

Sequencing

Security/provenance review → containerized spike (1 sprint) → single-repo pilot with CI job → document bootstrap and fixture conventions → expand to remaining WP repos. Gate expansion on pilot flake rate and runtime.

Operational Impact

Maintenance

MIT license, ten-year track record, single primary maintainer. Budget for an internal owner who tracks upstream releases and re-validates the matrix quarterly. Realistically, expect to absorb one breaking upgrade per 12–18 months (Codeception major or WordPress core change). Internal mirroring plus a pinned SHA reduces supply-chain and abandonment exposure.

Support

Community-only: GitHub issues, no commercial SLA. If the WordPress surface is business-critical, consider sponsoring the maintainer or budgeting a few days per quarter of internal triage. Escalation path must be defined before adoption, not after a CI outage.

Scaling

Browser acceptance tests are the cost center — minutes per test, not milliseconds. Parallelize with Codeception's --group/shard support across CI runners; each shard needs its own database schema to avoid contention. Provision the WP install from a cached SQL dump rather than a fresh install per run. Capture screenshots, page HTML, and DB dumps as CI artifacts on failure — without them, flake triage consumes disproportionate engineering time.

Failure modes

  • Flaky browser tests from timing and selector drift; hard-coded URLs/ports breaking between local and CI.
  • Database state leakage producing intermittent false passes.
  • WordPress core or plugin updates invalidating fixtures and bootstrap assumptions.
  • Codeception/PHP upgrades breaking the suite at the worst time; pin aggressively.
  • Orphaned containers and stale MySQL volumes inflating CI cost.
  • Silent provenance drift if the dependency is unpinned.

Ramp-up

A developer fluent in PHPUnit needs roughly one to two weeks to become productive; the real learning curve is Codeception's suite/module model plus WordPress internals (hooks, table prefixes, multisite, activation flows). Allocate a documented internal getting-started guide and a reference suite from the pilot. QA engineers without PHP background will need closer support for the acceptance-test layer.

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.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console