Live data from Hacker News

Corcel – Use WordPress backend with Laravel or any PHP application

github.com

21–30 of 55 posts

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

#22

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?

Would Acorn not also fall under the same utility? It's been around for a while. https://roots.io/acorn/

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

#23
post #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 provide…

in wordpress ecosystem do not blame yourself if you end up with a bloated site :)

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

#24
I can see why people would do this with existing WordPress setups, but would there be any reason to consider it for a new build over a dedicated headless CMS (like Strapi or a bunch for PHP I don't know well enough to name) or headless CMS SAAS (like Prismic)?

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

#25
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.

Agreed. I've been doing freelance design/dev for small businesses for 15+ years and at first I would always choose the best current CMS available. Wordpress was always an option, but it was clunky and had a mixed reputation. Well, all those CMSs are gone and I had to migrate several sites. Wordpress offers one of the most important things to these small businesses: (relative) consistency and dependability.

I can very much see the benefit of decoupling the front and back ends for these cases, especially since in most cases nowadays the public facing pages are pre-rendered/cached anyway. Also, I love Laravel.

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

#26

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…

PHP hasn't been behind in tooling, WordPress has (and still is). Frameworks like Laravel are very much up to par when it comes to tooling.

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

#27

I can see why people would do this with existing WordPress setups, but would there be any reason to consider it for a new build over a dedicated headless CMS (like Strapi or a bunch for PHP I don't know well enough to name) or headless CMS SAAS (like Prismic)?

Yes. Every content manager and content writer knows and loves Wordpress. It's only developers that hate Wordpress. Corcel lets those content people use the tools they like, and lets developers build secure, performant, maintainable websites.

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

#28
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.

Agreed. I've been doing freelance design/dev for small businesses for 15+ years and at first I would always choose the best current CMS available. Wordpress was always an option, but it was clunky and had a mixed reputation. Well, all those CMSs are gone and I had to migrate several sites. Wordpress offers one of the most important things to these small businesses: (relative) consistency and dependability. I can very…

Just wanting to chime in that ProcessWire [1] has provided this dependency for me over the last 10 years, even in a better way than WordPress can provide, since it is such a small core that rarely needs updating, and that most if not all functionality can be developed through a few lines it's amazing PHP API rather than tons of 3rd party plugins that need constant updating. 10+ year site still running without me touching it. One customer even was able to find a (non-expert) developer to develop it further, since it is all pure PHP anyways.

As a former Drupal webdev, ProcessWire is heaven.

https://processwire.com/

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

#30
post #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 provide…

After taking a quick look at your e-commerce site, you could simplify it further without compromising performance over personalization/technology stack if you have alternative options especially minimal codebase and CDN friendly.
Post reply on HN