Live data from Hacker News

Corcel – Use WordPress backend with Laravel or any PHP application

github.com

11–20 of 55 posts

Re: Corcel – Use WordPress backend with Laravel or any PHP application

#11

if this works it would completely change how we do things with wordpress. 1. does it work with any wordpress plugin? can i piggy back off laravel + frankenphp to scale what used to be nightmarish with wordpress? 2. does the underlying CMS UI still work for WP? Or is it built separately?

From skimming the docs, this is more about WP database than WP itself. In other words, you could install WP to setup the DB and then kill the WP install if you liked.

1. It looks like it only works with that which would be provided by WP by default. For example, the link below is an extension for working with Woocommerce. Given that WP doesn't even need to exist (you only need the WP DB) then you could use whatever setup is compatible with Laravel. You could also have separate environments with WP and Laravel sharing a remote DB.

2. Both WP and Laravel would work as if the other didn't exist. They only share the DB.

https://github.com/corcel/woocommerce

Re: Corcel – Use WordPress backend with Laravel or any PHP application

#12

This is very cool! It always felt like PHP was behind in tooling - git-driven CI was challenging for WordPress (because the framework's plugins edit the project files and it is married to subversion), and serverless PHP was basically impossible until Laravel Vapor came along. Projects like this give me hope and excitement. I wish Corcel was around years ago when I had to write gross SQL string interpolation for vario…

>serverless PHP was basically impossible until Laravel Vapor came along

I've got production PHP Lambda runtimes that predate Laravel Vapor by 7 years...

Re: Corcel – Use WordPress backend with Laravel or any PHP application

#13

This is very cool! It always felt like PHP was behind in tooling - git-driven CI was challenging for WordPress (because the framework's plugins edit the project files and it is married to subversion), and serverless PHP was basically impossible until Laravel Vapor came along. Projects like this give me hope and excitement. I wish Corcel was around years ago when I had to write gross SQL string interpolation for vario…

Agreed on PHP tooling. I'm surprised more hasn't been borrowed from other frameworks. Working in this space too on serverless wordpress+mariadb[0]. We have a lot of open source tooling on our roadmap to make this as complete as serverless for other languages.

0. https://www.agiler.io

Re: Corcel – Use WordPress backend with Laravel or any PHP application

#14
post #5

If I understood correctly, this is basically a collection of Eloquent (Laravel's ORM) models that represent Wordpress database tables. Nifty tool for PHP projects that need to interface with Wordpress data. With how large the Wordpress market is, this is probably desired by more teams than one could think of at a quick glance.

It circumvents the GPL unless you have a very unusual interpretation or have it putting GPL code into your database, with better performance and less complexity that the REST and GraphQL wrappers that are common ways to do headless WordPress.

Re: Corcel – Use WordPress backend with Laravel or any PHP application

#17
Corcel has worked great for us, even in a production environment.

Our family's e-commerce business previously had a slow and bloated WooCommerce site, largely due to my skill issues. However, we were able to rescue the site by using Corcel, Laravel, Filament, and LunarPHP.

My wife still uses the WordPress admin interface as the main admin tool, while the public-facing website is rendered by Laravel, with data provided seamlessly through Corcel.

Post reply on HN