r/PHPhelp • u/IndependentZone2833 • Nov 09 '25
Starting to learn PHP
Hey everyone! 👋
I'm starting to learn PHP and would love to hear the community's advice.
What do you recommend I start with? Any good resources, practices, or beginner projects you suggest?
Thanks in advance! 🙏
19
Upvotes
17
u/lightspeedissueguy Nov 09 '25
My advice is to learn pure PHP first. Seriously, don't worry about frameworks or anything else. Pure PHP, then object oriented programming, then composer, security, best practices, testing, THEN think about frameworks.
Also, and I can't say this enough, do not use AI to write code. It's a crutch against your learning. You can use it to help you learn, but only treat it like an advanced google.
https://phptherightway.com/ is a good resource
5
u/Zlodej5 Nov 10 '25
When you get to mysql go straight for PDO. It solves multiple issues in a longrun.
https://phpdelusions.net/pdo
2
u/DrPornMD23 Nov 10 '25
The O'Riley books are good. Maybe the best books. For you is the PHP cookbook. After programming for some years, you could try to pass the Zend certificate. And learn some frameworks. Symfony is wonderful. And Slim for smaller projects.
3
u/[deleted] Nov 10 '25
Fortunately there are already heaps of good suggestions and it's been around a long long time so there are lots of good resources.
But my tip: when people hate on PHP, they are wrong, ignore them.
3
u/equilni Nov 10 '25
Likely a bot. OP hasn't responded to anyone. If they are not...
Searching. You will likely be doing lots of it in your programming career.
My comments on some of the posts (see this is asked a few times already):
https://reddit.com/r/PHP/comments/1m49j4n/year_0_php_dev_the_things_one_should_focus_on_in/n45k6ka/
https://reddit.com/r/PHP/comments/1cuo6jp/learning_php_as_a_beginner/l4kyk0i/
https://reddit.com/r/PHPhelp/comments/18g6v7f/deleted_by_user/kcypiaj/
4
u/Feeling_Photograph_5 Nov 10 '25
Laracasts has a good video on PHP that leads nicely into their material for Laravel, which is an amazing framework.
The full course is free on their website.
2
u/Anxious-Insurance-91 Nov 10 '25
I would say:
https://laracasts.com/series/php-for-beginners-2023-edition
You could also find it on youtube
2
u/Equivalent-Hall3819 Nov 17 '25
I think easiest path is : go visit www.w3schools.com , select php and continue. If you are already familiar with html and basic css it would be fantastic! If not also there is good html and css section. Have fun and stay confident. You will learn it . Welcome to php development world
1
u/xreddawgx Nov 10 '25
If you know any other languages start by looking up what's the php equivalent of whatever line or code you are familiar with
1
u/ardicli2000 Nov 10 '25
programming with gio is a wonderful source for video tutorials...
1
u/vgeekoid Nov 10 '25
https://www.youtube.com/watch?v=-AJic0FjuAA&list=PLr3d3QYzkw2xabQRUpcZ_IBk9W50M9pe-
1
u/WebCodeLogic Nov 11 '25
First learn the fundamentals of PHP… define variables, use operators, define and use methods and of course the fundamentals of Object Oriented programming with PHP.
1
u/AnnaSynergy Nov 11 '25
Laracasts PHP course. It's simply brilliant. I stand by it. Good luck and happy coding. 💯💯🔥
1
u/Sleepy_as_AlwaysX Nov 10 '25
I'd say to first learn the basics. This youtube video by BroCode is good, he explains the concepts really well. Another resource that you can read is https://www.phptutorial.net/ . If you don't understand something, ask chatgpt to explain it in simple words. Once you've finished going through these, then focus on building simple projects, that's the best way to really understand php. Don't get stuck in tutorial hell
-3
u/[deleted] Nov 10 '25
Also learn HTMX
0
u/[deleted] Nov 09 '25
[deleted] — view deleted comment