/wp/) suggests a lightweight approach, avoiding full WordPress bootstrapping overhead. However, this may introduce complexity in shared dependencies (e.g., PHP extensions, shared storage).wp-load.php vs. Laravel’s composer autoloader).allow-plugins), which may friction deployment pipelines (CI/CD, serverless, or containerized environments).| Risk Area | Description |
|---|---|
| Performance Overhead | WordPress’s legacy codebase (e.g., wp-includes/) may bloat Laravel’s request lifecycle, especially if Filament and WordPress share the same process. |
| Security | WordPress is a high-target attack surface. Running it alongside Laravel exposes the app to WordPress-specific vulnerabilities (e.g., outdated plugins, REST API misconfigurations). |
| Maintenance Burden | Dual-codebase maintenance: Updates to WordPress core/plugins may break Laravel integrations (e.g., template changes, hook conflicts). |
| Debugging Complexity | Errors may originate from either stack, requiring deep knowledge of both Laravel and WordPress debugging tools (e.g., SAVEQUERIES, Laravel’s dd() vs. WordPress’s error_log). |
| Caching Conflicts | Shared OPcache or Redis caches may cause inconsistent behavior between Laravel and WordPress (e.g., transients, object caching). |
wp_posts for blog content)./blog → /wp/).Post model) to WordPress, using Filament for editing.cms.example.com) and use APIs (REST/GraphQL) to sync data with Laravel.| Component | Compatibility Notes |
|---|---|
| Laravel | Requires Laravel 10+ (likely due to Filament v3). Test for composer plugin conflicts (e.g., roots/wordpress-core-installer). |
| Filament | Hard dependency. Custom Filament resources may need adjustments to work with WordPress data (e.g., wp_postmeta → Eloquent relations). |
| WordPress | Supports WordPress 6.x. Older versions may lack required PHP features (e.g., namespaces, traits). |
| PHP | PHP 8.1+ recommended (due to Laravel/Filament). WordPress may need polyfills or custom builds. |
| Databases | Assumes MySQL/MariaDB. PostgreSQL support is untested (WordPress has known issues with PostgreSQL). |
| Web Servers | Nginx/Apache with custom location /wp/ block. Caddy/Cloudflare Workers may require proxy configurations. |
allow-plugins in composer.json).mbstring, xml, curl).composer require moox/press
php artisan mooxpress:install
/wp/ directory exists)./wp/ routing.php artisan vendor:publish --tag="press-migrations").wp_posts)./wp/ → WordPress, /admin/ → Filament).init, wp_enqueue_scripts).roots/wordpress-core-installer) may require manual intervention during updates.error_log, Laravel uses Monolog. Aggregate logs in a single dashboard (e.g., Sentry, Laravel Horizon)./wp/health, /filament/health).How can I help you explore Laravel packages today?