johnpbloch/wordpress
Composer package for managing WordPress as a dependency. Install specific WordPress core versions via Composer, keep core out of your repo, and integrate WordPress into modern PHP workflows and deployments while retaining the standard WordPress structure.
Pros:
composer.json, which aligns with Laravel’s ecosystem. This reduces friction for teams already using Composer for PHP projects.Cons:
wp_posts, wp_options), which may conflict with Laravel’s Eloquent migrations or existing database structures. Requires careful schema isolation or customization./wp-admin vs. Laravel’s default routes). Requires URL rewrites or reverse proxy configuration.Guzzle, Symfony HTTP Client) to fetch WordPress content and hydrate Laravel models/collections.DB::connection('wordpress')->table('wp_posts')). Requires careful transaction management to avoid conflicts..zip installs.spatie/laravel-feed or custom packages to parse WordPress feeds.blade-directive to embed WordPress shortcodes or REST API calls in templates.php-compatibility checks in CI.composer.json and Laravel’s vendors. Use composer install --ignore-platform-reqs cautiously.mysqli or pdo_mysql. Laravel may use pdo_sqlite or others; ensure consistency..htaccess or Nginx rules. Laravel uses its own routing. Use a reverse proxy (e.g., Nginx) to route /wp-admin to WordPress and / to Laravel.wp_users) may need to sync with Laravel’s users table. Use Laravel’s HasApiTokens or custom sync scripts.cms.example.com).How can I help you explore Laravel packages today?