Learn PHP

If you want to be a web developer, you need to learn PHP. Read these free tutorials to master this powerful and popular scripting language.

Getting started with PHP

  • How to Build a Simple REST API in PHP

    How to Build a Simple REST API in PHP

    Sajal Soni
  • How to Use Sessions and Session Variables in PHP

    How to Use Sessions and Session Variables in PHP

    Sajal Soni
  • How to Upload a File in PHP (With an Example)

    How to Upload a File in PHP (With an Example)

    Sajal Soni
  • All PHP tutorials:

    1. AngularJS and Laravel: Begin Building a CRM

      AngularJS and Laravel: Begin Building a CRM

      Tutorial Beginner

      When creating a single-page app we should use some kind of framework to do some of the job for us, so we can focus on the actual functionality. AngularJS...

    2. Creating a Photo Tag Wall With Twilio Picture Messaging & PHP

      Creating a Photo Tag Wall With Twilio Picture Messaging & PHP

      Tutorial Beginner

      Twilio's recently announced Picture Messaging has vastly opened up what we can do with text messaging, now we can attach photos to our text messages and have...

    3. Acceptance Testing With Codeception

      Acceptance Testing With Codeception

      Tutorial Beginner

      Typically new features for web applications are tested by visiting the appropriate page in a browser, maybe filling out some form data, submitting the...

    4. BDD With Behat

      BDD With Behat

      Tutorial Beginner

      The BDD PHP framework Behat, allows you to test your PHP applications using human-readable sentences to write features and scenarios about how your...

    5. Sending Emails With Laravel 4 & Gmail

      Sending Emails With Laravel 4 & Gmail

      Tutorial Beginner

      Sending emails is crucial for any web application. Usually, an email is sent to notify the user of some kind of activity that has taken place on the site,...

    6. SOLID: Part 1 - The Single Responsibility Principle

      SOLID: Part 1 - The Single Responsibility Principle

      Tutorial Beginner

      Single Responsibility (SRP), Open/Close, Liskov's Substitution, Interface Segregation, and Dependency Inversion. Five agile principles that should guide you...

    7. Statamic 101

      Statamic 101

      Tutorial Beginner

      Statamic is a modern PHP CMS which really makes an effort to be easy and intuitive to use. From its flat-file design to its use of technologies like Markdown...

    8. The Repository Design Pattern

      The Repository Design Pattern

      Tutorial Beginner

      The Repository Design Pattern, defined by Eric Evens in his Domain Driven Design book, is one of the most useful and most widely applicable design patterns...

    9. Deploying a Laravel Application Using Capistrano

      Deploying a Laravel Application Using Capistrano

      Tutorial Beginner

      So you've just built a fancy web application and you're planning to put it online. This can be done in many ways. In this article I'd like to cover one...

    10. Authentication With Laravel 4

      Authentication With Laravel 4

      Tutorial Intermediate

      Authentication is required for virtually any type of web application. In this tutorial, I'd like to show you how you can go about creating a small...

    11. Money Pattern: The Right Way to Represent Value-Unit Pairs

      Money Pattern: The Right Way to Represent Value-Unit Pairs

      Tutorial Intermediate

      The Money Pattern, defined by Martin Fowler and published in Patterns of Enterprise Application Architecture, is a great way to represent value-unit pairs....

    12. 25 Laravel Tips and Tricks

      25 Laravel Tips and Tricks

      Tutorial Intermediate

      There was a period of time, not too long ago, when PHP and its community were, for lack of better words, hated. Seemingly, the headline joke of every day was...