Live data from Hacker News

Corcel – Use WordPress backend with Laravel or any PHP application

github.com

51–55 of 55 posts

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

#51
post #38

Earlier quoted context omitted.

PHP tooling is amazing. WordPress tooling is not, since it uses archaic development practices.

I am not a PHP developer, and our php code is all third party apps. Do you have any write ups on PHP tooling? My feeling is that php tooling has a hard time handling stateless images, you often need to install plugins to php applications with a GUI with no good way to do it in a build process. Config of php applications is always an mix of php.ini and database config, often making monitoring a case of writing custom…

Modern PHP applications use Composer to manage packages as well as to install PHP extensions. Configuring your PHP app is entirely for you to do - whether you keep your configuration in the database is not a problem of PHP, it's your applications and how it was made. These days I'd think the common thing is to just use ENV variables, like all other modern applications do. If you mean however to configure the PHP runtime, well yes, you have to touch php.ini for that, much like you have to have tons of flags to configure the Java runtime, I don't see how it's very different.

For PHP monitoring there are numerous modern solutions out there just a quick google search away.

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

#52
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…

Oh, interesting. Can you provide more insights? Pitfalls?

I am in a very similar situation. Just it's not my families business. It's a friend e-commerce business that i supported & developed on the site for years. I wanted to move the product creation to a separate php application & sync via api. But those projects always explode.

How much time did you spend on this "migration"?

Is it a monolith? How does everything work together? What if you wanna leave the Wordpress DB schema behind at some point, would it be easy to "just" rewrite your backend models & DB schema?

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

#53
post #38

Earlier quoted context omitted.

I am not a PHP developer, and our php code is all third party apps. Do you have any write ups on PHP tooling? My feeling is that php tooling has a hard time handling stateless images, you often need to install plugins to php applications with a GUI with no good way to do it in a build process. Config of php applications is always an mix of php.ini and database config, often making monitoring a case of writing custom…

Modern PHP applications use Composer to manage packages as well as to install PHP extensions. Configuring your PHP app is entirely for you to do - whether you keep your configuration in the database is not a problem of PHP, it's your applications and how it was made. These days I'd think the common thing is to just use ENV variables, like all other modern applications do. If you mean however to configure the PHP runt…

[deleted]

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

#54
post #40

Earlier quoted context omitted.

The real issue is that customers without knowledge are asking explicitly for wordpress instead letting us techs give the best advice.

On the other hand, most techs are bias. That is, the tool they know is always the best solution, whether that's true to not. Yeah, perhaps there are times when WP isn't the ideal choice from a pure technology POV, but there's more to it than that. For example, most (solo) devs complete dismiss the "getting hit by a bus" test. Sorry, but no one should accept advice from anyone who dismisses that test.

wordpress is being marketed, deployed and then abandoned without maintenance by seo experts and designers, not techs nor devs.

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

#55

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)?

We migrated from WordPress to Prismic several years ago, then migrated to Strapi a year ago, and it has been miserable. We originally used Corcel with our Laravel installation, but somehow still found malware, so we immediately decommissioned the entire WordPress install and switched to Prismic. Prismic worked great and I regret switching to Strapi, but I felt the extensibility would be better (and latency reduced) i…

It sucks that you had a tough time with Strapi; I use it for many projects and have not had any issues. Do you have any example, specifically " like localization and their API," where you had issues?

I also know they have open office hours on their Discord channel Mon - Fri 12:30 pm cst where you can get help and ask questions.

Post reply on HN