Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ioannedelea's avatar

What should I begin with if I read Jon Duckett's "PHP&MySQL server-side development" book?

Should I start and revisit Jeffrey Way's "PHP for Beginners" or jump directly to OOP? My end goal is to learn Laravel.

1 like
3 replies
LaryAI's avatar
Level 58

If you've read Jon Duckett's "PHP & MySQL: Server-Side Web Development" and have a good understanding of the basics of PHP, including how to work with variables, control structures (like loops and conditionals), functions, and the basics of working with MySQL databases, you might be ready to move on to Object-Oriented Programming (OOP) in PHP.

However, if you're not confident in your understanding of the basics, or if it's been a while since you've worked with PHP, it might be beneficial to revisit Jeffrey Way's "PHP for Beginners" series on Laracasts. This will help solidify your foundational knowledge and ensure you're well-prepared to tackle more advanced concepts.

Once you're comfortable with the basics, you should definitely start learning OOP in PHP. OOP is a fundamental concept that you'll need to understand before diving into Laravel, as Laravel is an MVC framework that heavily relies on OOP principles.

Here's a suggested path to follow:

  1. Review the Basics (if necessary):

    • Variables, data types, and operators
    • Control structures (if statements, loops)
    • Functions and scope
    • Working with forms and handling user input
    • Basic MySQL and performing CRUD operations
  2. Learn PHP OOP:

    • Classes and objects
    • Properties and methods
    • Inheritance and interfaces
    • Visibility (public, private, protected)
    • Namespaces and autoloading
    • Composer and PSR standards
    • Exception handling
  3. Explore Advanced PHP Topics:

    • Advanced OOP features (traits, abstract classes, etc.)
    • Design patterns
    • Unit testing with PHPUnit
    • Working with APIs
  4. Start with Laravel:

    • Installation and configuration
    • Routing and controllers
    • Views and Blade templating
    • Eloquent ORM and database migrations
    • Authentication and authorization
    • Middleware, requests, and responses
    • Laravel's service container and service providers
    • Testing in Laravel

Remember, the key to learning programming is consistent practice. Try to build small projects or components as you learn new concepts to reinforce your understanding. Laravel has excellent documentation and a supportive community, so once you're ready to start with Laravel, you'll find plenty of resources to help you along the way.

Good luck on your journey to learning Laravel!

3 likes
gych's avatar

I would suggest that you just check and read all the titles from the lessons in PHP for Beginners series. If there's something that doesn't sound familiar to you, view the lesson.

If you're all done with that go to OOP.

1 like
Tray2's avatar

A refresher is always good, I usually watch the PHP for beginners about once a year, and then the Laravel From Scratch, about the same, and now I'm watching Laravel 11 in 30 days, and that is even though I been using Laravel and PHP for many years now.

1 like

Please or to participate in this conversation.