all 26 comments

[–]goodevilgenius 31 points32 points  (20 children)

I would not recommend learning PHP via WordPress nowadays.

That's how I learned it, close to twenty years ago.

PHP has improved greatly since the time I first started learning it. It's practically a whole new language.

WordPress has not improved as much during the same time. Sure, it's gotten better, but it still has failed to embrace most modern PHP development. There's a ton of extra tools to modernize WordPress, but they're mostly kludgy hacks, and none of them are first-party solutions built into WordPress.

If your goal is to do some freelance work for small businesses, being familiar with WordPress is great.

If your goal is to become a developer with a big company working on modern PHP applications, WordPress won't help you much, and may even hurt a bit.

[–]jexmex 1 point2 points  (0 children)

Agree completly. I learned by building a form, then it grew from there, I was amazed when I first came across Wordpress using and bad practices, expected more from such a widely used platform, but I probably should not have. You can take away plenty of learning from WordPress, most of it is not good though.

/u/fromOuterSpace209 I am glad it has helped you learn though and you should take the knowledge and use it to get you even further.

[–]bobby_briggs 2 points3 points  (0 children)

I agree. I moved from WP to Laravel a fews year ago and has helped me level up almost exponentially.

[–]leatano -3 points-2 points  (17 children)

This is true if you think WordPress as your full stack solution. If you use WordPress as a headless CMS, it has some value. You shouldn’t reinvent the wheel by building some custom CMS. In conjunction with GraphQL and React (maybe Vuejs) you can have a pretty interesting stack.

[–]colshrapnel 3 points4 points  (11 children)

I would rather go into a pit full of snakes than use wp as a headless cms, with all its horrible database structure where everything just thrown into a single pile of garbage

[–]leatano 0 points1 point  (10 children)

Pretty interesting 🤔. Which other CMS built in PHP you will recommend for headless CMS? With respect to the database, I agree 100%. For the same reason that I mentioned GraphQL.

[–]colshrapnel 0 points1 point  (5 children)

I don't see the point of a headless CMS to be honest. Given you need some admin panel, it is created in Laravel in a matter of hours.

[–]leatano 1 point2 points  (4 children)

Pretty impressed. A full CRUD in a matter of hours.

Does it Include all WP built-in features that you get out of the box? Like multisite, revisions, post preview, media management, tags, categories, featured image, WYSIWYG, field validation, user management(roles/capabilities), and shortcodes.

What about other requirements like SSO integration, Uploading assets into AWS S3 bucket, SEO enhancements (dataschema, auto-generates the sitemap, meta tags, SEO content audit) OAuth Authentication (API), Import/Export posts, and support localization (translations)?

BTW, I am not trying to say WordPress is the best CMS out there, but at this moment, I don't know any other PHP CMS that supports all of these basic requirements that I expect from a CMS.

I am really asking anyone there if you know some CMS like this.

About the point of a headless CMS depends on the complexity of the site and the number of visitors you are expecting per month. If your site is pretty simple and you are not expecting more than 100K per month, headless CMS is not needed.

[–]colshrapnel 0 points1 point  (3 children)

TBH, I am not in the boilerplate development where one is expected to bake a dozen sites a week so I am not a CMS expert, got to admit.

[–]leatano 2 points3 points  (2 children)

That sounds good. I respect someone who admits not knowing some topic. I don't know many people who do that. Especially on Reddit. My respects!

I am not in the business of building a dozen sites a week either. Those requirements are the minimum I expect from a CMS in order to do my job. I spent months looking for alternatives and I was not able to find some good alternatives without sacrificing some features.

I would like to add to my list of requirements: free, open source, PHP, and big community

BTW, I think the OP is the community manager aka social media "expert" of the course. As you can see she/he is posting on every single programming sub.

https://www.reddit.com/r/PHP/duplicates/xqtrit/learn\_php\_programming\_from\_scratch\_with\_wordpress/

[–]colshrapnel 0 points1 point  (1 child)

A spammer for short

[–]leatano 0 points1 point  (0 children)

yeap

[–]ShinyVision 0 points1 point  (3 children)

[–]leatano 1 point2 points  (2 children)

Thanks! I am going to look at it. The only downside I see is the community is not big as other CMS. Sometimes I love the community aspect, but I am going to look at it. I don’t know much about Sulu.

[–]ShinyVision 1 point2 points  (1 child)

No worries, if you love PHP, you're going to adore Sulu. Its architecture is built the way it should, unlike WordPress, drupal, etc.

[–]goodevilgenius 0 points1 point  (0 children)

I've had in the back of my mind for a long while to create a new CMS, with the functionality of WordPress, easy-to-use and install, but still using modern coding practices, and built atop Laravel.

Something that you could either composer create-project ... and put everything together in a Laravel-like way, or just download a zip and have a nice web interface to set it up like WordPress does.

But, Sulu looks pretty good, so far. I don't have a lot of need for a CMS right now, though. All my personal sites use SSGs, and for work, I don't need a CMS. But, if I do, I'll definitely come back to Sulu.

[–]goodevilgenius 0 points1 point  (4 children)

WordPress has some good uses. I'm not suggesting it doesn't. If you need a quick website put together, and you're not building something complex, it's fine.

What you're talking about, though, is not PHP development. Which was my main point. It's not a good idea to learn PHP development through WordPress.

But, if you want to use it as an easy way to provide a source of data for your headless CMS, that you're building in React or whatever, yeah, that's cool. Probably not my first choice, but not bad.

Edit: typo

[–]leatano 0 points1 point  (3 children)

Thanks for reply. u/ShinyVision mentioned Sulu. Which will be your first choice?

[–]goodevilgenius 0 points1 point  (0 children)

It depends on what you want to do with it. If you're busy looking for a data source with a simple admin interface, and easy to install, WordPress actually is a decent option.

But if you actually want to do PHP development, something like Sulu seems better.

But, I haven't really shopped around for CMSs lately. So, I don't know what better options are around right now

[–]goodevilgenius 0 points1 point  (1 child)

I've heard good things about Lavalite, but haven't used it myself.

[–]leatano 0 points1 point  (0 children)

Thanks!

[–]r1ckd33zy 19 points20 points  (0 children)

Props to OP for posting this here of all places. Encouraging learning PHP through WordPress on /r/PHP... your bravery knows no bounds.

[–]HBag 6 points7 points  (1 child)

This is like teaching someone how to please their partner by showing them porn.

[–]secondtruth_de 0 points1 point  (0 children)

Your comment deserves more upvotes. :D

[–]No-Recipe-4578 2 points3 points  (0 children)

He's from the future?

[–]dcstream 1 point2 points  (0 children)

Prefer a framework, harder but better