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

PedroMarungo's avatar

Advice for PHP beginners

Hi everyone, my name is Pedro. I started learning PHP back in mid-2012. Due to some hardships in life, I wasn’t able to continue growing with the language or even focus on coding. However, my passion for programming never faded, and over the years, my desire to learn more has only grown.

I recently completed a back-end developer boot-camp that focused on React and Python with Flask. However, I never quite enjoyed working with those languages as much as I do with PHP. There’s something about PHP—its warm, welcoming community, and the fantastic learning resources like Laracasts and Code course—that has made me feel like I’m part of a great developer family.

I’ve come to realize that understanding core programming concepts is what really allows us to tackle complex scripts and programs. Now, as I return to learning PHP, I’d love to hear your recommendations on what I should focus on. I’m currently following a learning path on Laracasts, but I’d appreciate any additional pointers, advice, or tips you might have.

Thanks in advance, everyone!

1 like
8 replies
LaryAI's avatar
Level 58

Hi Pedro,

Welcome back to the world of PHP! It's great to hear that you're reigniting your passion for programming. Here are some tips and areas to focus on as you dive back into PHP:

  1. Understand the Basics: Make sure you have a solid understanding of PHP basics, including syntax, variables, data types, and control structures. This will form the foundation for everything else.

  2. Object-Oriented Programming (OOP): PHP is an object-oriented language, so understanding OOP concepts like classes, objects, inheritance, and interfaces is crucial. This will help you write more modular and maintainable code.

  3. PHP 8 Features: Since you last worked with PHP, there have been significant updates. Familiarize yourself with PHP 8 features like named arguments, union types, attributes, and the JIT compiler.

  4. Composer: Learn how to use Composer, PHP's dependency manager. It’s essential for managing libraries and packages in modern PHP applications.

  5. Frameworks: Consider learning a PHP framework like Laravel or Symfony. Frameworks can help you build applications faster and enforce best practices.

  6. Testing: Get comfortable with testing your code. PHPUnit is the standard testing framework for PHP, and learning it will help you write more reliable code.

  7. Security: Understand common security issues in PHP applications, such as SQL injection, XSS, and CSRF, and learn how to protect against them.

  8. Database Interaction: Learn how to interact with databases using PDO or an ORM like Eloquent (if you're using Laravel).

  9. APIs: Practice building and consuming RESTful APIs. This is a common requirement in modern web applications.

  10. Community and Resources: Continue engaging with the PHP community through forums, GitHub, and platforms like Laracasts. They are invaluable for learning and staying updated.

Here's a simple example to illustrate some of these concepts:

<?php

// Basic OOP in PHP
class Car {
    private $color;
    private $model;

    public function __construct($color, $model) {
        $this->color = $color;
        $this->model = $model;
    }

    public function getDescription() {
        return "This car is a {$this->color} {$this->model}.";
    }
}

$myCar = new Car('red', 'Toyota');
echo $myCar->getDescription();

This example demonstrates basic class creation, properties, a constructor, and a method in PHP.

Keep practicing, and don't hesitate to reach out to the community when you need help. Happy coding!

1 like
MarkSanotskyi's avatar
Level 40

Hi Pedro,

Welcome back to PHP and the world of programming! It’s inspiring to hear about your journey and how your passion for coding has stayed strong despite the challenges. It’s great that you’re diving back into PHP and leveraging resources like Laracasts—it’s definitely one of the best places to strengthen your skills.

As for recommendations on what to focus on, here are some ideas to guide your learning path:

Solidify Your Core PHP Skills: Make sure you have a strong understanding of PHP fundamentals like data types, control structures, functions, and object-oriented programming (OOP). Knowing these well will make advanced concepts much easier to grasp. Learn Modern PHP Features:

PHP has come a long way in recent years, with features like: Typed properties Union types Attributes Arrow functions Familiarize yourself with these by exploring the changes introduced in PHP 7.x and 8.x. Explore a Framework:

Since you enjoy PHP, getting into a framework like Laravel can be a game-changer. Laravel’s ecosystem is extensive, and it’s great for building everything from small projects to enterprise-level applications. As you’re already on Laracasts, the Laravel tutorials are a perfect resource.

Practice Testing: Understanding testing (unit and feature testing) is critical for writing maintainable code. Laravel makes it easier to integrate testing into your workflow, so it’s worth learning early. Build Real-World Projects:

Apply what you’re learning by building projects that interest you. For example: A blog or CMS A to-do app with user authentication A small API for a frontend framework These projects will help solidify your skills and give you practical experience. Learn Composer and Package Development:

Composer is a must-have tool for managing dependencies in PHP projects. Once you’re comfortable with it, consider exploring how to create and publish your own packages. Contribute to Open Source:

The PHP community thrives on open source. Contributing to projects, even in small ways, will help you learn from experienced developers and gain confidence in your skills. Stay Curious and Keep Learning:

Check out additional resources beyond Laracasts, like: Symfony’s documentation (to explore another framework) Blogs, podcasts, and forums related to PHP development. Remember, learning is a journey, and you’re already on the right track. Don’t hesitate to reach out to the community for help or collaboration. You’re part of the PHP family now, and we’re here to support you.

Good luck, and happy coding!

2 likes
SharipovIskandar's avatar

Hi Pedro,

Your journey sounds really inspiring! It’s awesome that despite the ups and downs in life, your passion for programming has stayed strong. PHP has a great community, and it’s always nice to hear when someone feels like they’ve found their “home” in a language.

Since you’re already diving into Laracasts, I’d say it’s a fantastic place to build solid foundations. Laravel, in particular, would be a great framework to focus on if you haven’t yet. It’s widely used and super powerful once you get the hang of it.

2 likes

Please or to participate in this conversation.