What's the best way to get started with PHP in 2016?

What resources, learning methodologies, frameworks etc would you recommend?

Tags:#php

Learn Something New Everyday,
Connect With The Best Developers!

Sign Up Now!

& 500k+ others use Hashnode actively.

Davor Minchorov's photo

Laracasts should be your best friend. This is one of the websites that changed my way of thinking and the way of programming. I believe that this is the best website for PHP and Laravel (if you plan on using it after you are done with plain PHP, few projects)

The PHP For Beginners series is still in progress but it gets updated every week. There's a lot of modern PHP development on this website, including some JavaScript too!

The Laracasts Forum should be your home for all PHP questions while learning.

There are a few other websites that teach PHP and/or other PHP frameworks (save them for later, don't start with a framework!!!!)

The ones I checked out were:

Whatever you choose, make sure to spend a few good months or a year with PHP and Object Oriented Programming PHP only without using any framework to understand the language and what's happening. Make sure to ask questions, people will help you. Oh, and most importantly, think of a few cool projects that might be useful to you, just so you have something to build and practice your newly learned skills.

Remember to revisit things that you already know so you can understand things better every time you learn the same thing. You will find out why it is used and how it is used in real life. That's how I learned Object Oriented Programming.

Aldo Fregoso's photo

You should focus in PHP 7.0, PHP 5.5 stopped receiving support the last week, and PHP 5.6 will stop getting active support at the end of this year, so it's not worth the trouble to learn them.

Although I hadn't seen or heard about a good resource "from zero to PHP 7.0", the most I can recommend you is the Modern PHP book, but it assumes the reader has some familiarity with pre-5.4 PHP (ie. non-modern PHP).

Although it is still a suggested read when you become acquainted with the language, since it introduces you to the Composer ecosystem, the PHP-FIG Standards, the PHP Right Way, and some other gems of information.


EDIT: I did a quick search, these books seem like the most sensible choice right now:

I just skimmed through the table of contents of them, the first one looks more focused in starting from zero, the second one looks more focused in creating CRUD applications, which is the most common kind of application in the PHP world, since I hadn't read them, I can't give a recommendation, but I would suggest to read both of them, the Sklar's one first.

Joe Clark's photo

Full-stack developer specializing in healthcare IT

I haven't kept up on the PHP ecosystem. I'm still with 5.4. LOL!

Antonio Garcia Marin's photo

I read both. The book of David Sklar begin from zero. The book of Antonio is less from zero. I vote for David Sklar first

Jeremy Bloomstrom's photo

As others have said, I also recommend Laracasts.com - Jeffrey is awesome. I also learn a great deal from podcasts. Here are a few you may want to check out.

P Ξ D R O L U Z 🐿's photo
Joe Clark's photo

I don't know that I can offer much more than Aldo recommended. My method of learning is to just jump in and do it. php.net will be your biggest go-to reference. StackOverflow will be your friend.

You'll probably want a good IDE that supports PHP. There's plenty of discussions about that and everyone has their favorite.

As for frameworks, I don't think I can offer much advice. Everyone is different as to what style they like. Laravel seems to the be most popular at the moment. But there's plenty others: CodeIgniter, CakePHP, Yii, Phalcon etc., and they all do a fairly decent job once you get them up and running. It's a matter of preference. You might check job listings in your area to see what technologies within the PHP ecosystem are most sought after and focus on those.

Ed Leonard's photo

Following along with this thread as I've never written a single line of PHP.

Antonio Garcia Marin's photo

Depends on you.

  • Do you like videos? Then https://www.youtube.com/user/phpacademy and Laracasts.
  • Do you like books ? Then Oreilly Learning PHP 7 or Oreilly PHP Cookbook + Oreilly Modern PHP + Oreilly Learning Design Patterns
  • Frameworks? Depends on your needs. Market Job? See at indeed/monster/larajobs.
  • Learning? pick any.
Hamed Qaderi's photo

I suggest PHP Pandas book written by Dayle Rees . He is one of the best authors I've ever know.

Antonio Garcia Marin's photo

Very bad book. IMHO. Better any of new books of Oreilly. Learning PHP , Modern PHP or Learning Design Patterns

Arianna Bates's photo

PHP is a great pen source general-purpose scripting language for getting started, When you first get into PHP, all you need is a single HTML web page. It is used to enhance web pages. PHP is the entry point into web development If you are beginners in programming first learn PHP programming.

Kinjal Sharma's photo

You can Learn from PHP training company because you can get live project based training from training institute

Kinjal Sharma's photo

IF you want to learn PHP, for online you should visit w3school and want learn to with live project and get certificate so you should join institute which is providing PHP development training.

Want to read more?

Browse featured discussions

© 2020 · Hashnode