In this PHP tutorial we'll continue our look at namespaces and how they work in PHP applications.
In this tutorial, learn about how to set up your app to use Composer Autoloading.
In this PHP tutorial we'll introduce Exceptions in PHP.
In this PHP tutorial, you'll learn about the different exception classes that are available to you use in your PHP applications.
In this tutorial, learn about PHP's built-in magic methods: __toString()
, __get()
, and __set()
.
In this tutorial, learn how to use PHP's built-in interface ArrayAccess
and when you might want to use it.
Additional resources
In this tutorial, learn how to implement PHP's built-in interface IteratorAggregate
to loop over an object.
In this PHP tutorial, we'll introduce Traits in PHP and how you can utilize them to reuse your code.
In modern PHP, you're going to spend a lot of time working with other people's classes: via external libraries that you bring into your project to get things done faster. Of course, when you do that: you can't actually edit their code if you need to change or add some behavior.
Fortunately, object-oriented code gives us some really neat ways to deal with this limitation. In this tutorial, you'll learn a method called composition in which we'll create a wrapper class, which has some subtle advantages over using inheritance.
Additional resources
Object-Oriented PHP (Topic) (Drupalize.Me)
Let's get started with Symfony 4 development. In this tutorial, we'll download and install Symfony with Composer.
Additional resources
- [The Wonderful World of Composer](https://drupalize.me/videos/wonderful-world-composer)
- [Command Line Basics](https://drupalize.me/series/command-line-basics-series)
- [Git](https://drupalize.me/topic/git)
In this tutorial, we'll get oriented with our app and set up PhpStorm for Symfony 4 development.
Additional resources
- [PhpStorm topic page](https://drupalize.me/topic/phpstorm)
Let's create our first page in our Symfony 4 app and learn about routes and controllers in the process.
Let's learn about the Composer plugin Flex and Flex's two superpowers: aliases and recipes. Aliases will ease the process of dependency installation and recipes will help us make sure everything is working in our dependency upon installation.
Additional resources
- [Symfony Recipes Repository](https://github.com/symfony/recipes) (GitHub.com)
In this tutorial, we'll install a Twig bundle and recipe.
Symfony 4: Twig Love
FreeIn this tutorial, we'll implement a template for our Symfony app using Twig. You'll learn a few Twig basics along the way.
Additional resources
- [Twig Templating](https://drupalize.me/series/twig-templating)
In this tutorial, we'll install the Profiler, also known as the Web Debug Toolbar. Let's explore what information and tools the Profiler and Web Debug Toolbar provide.
Symfony has changed the package name for the profiler since this video was recorded.
You can now install the profiler by running: composer require --dev symfony/profiler-pack
And read more about the profiler tool here: https://symfony.com/doc/current/profiler.html
In this tutorial, we'll install and explore debug-pack, a Symfony debugging package that includes Monolog (a logging library), phpunit-bridge (for testing), and even the profiler-pack that we already installed in a [previous lesson](/videos/symfony-4-web-debug-toolbar-and-profiler).
Additional resources
- [Symfony Recipes Server](https://symfony.sh/)
In this tutorial, let's make our pages less ugly and learn how we can include CSS and JavaScript assets in our application.
Additional resources
- [HTML and CSS topic page](https://drupalize.me/topic/html-and-css)
- [JavaScript topic page](https://drupalize.me/topic/javascript)
In this tutorial, we'll learn how to generate URLs to routes and we'll fix up the links in our app in the process.