Blog posts tagged with components

Managing object creation in PHP with the Symfony2 Dependency Injection component

Symfony's DependencyInjection component is a PHP implementation of a Service Container, or as others like to call it, a Dependency Injection Container (DIC). The component also provides useful tools for handling service definitions, like XML loaders or dumpers.

Finding files and directories in PHP with Symfony2 Finder component

Symfony Finder component makes the task of finding files and directories less tedious. It supports filtering by name, pattern, size, date of modification and few other criteria. As a result we get objects of class SplFileInfo. It offers convenient way of retrieving file and directory details.

Creating parametrized command line scripts in PHP with Symfony2 Console component

Symfony Console component enables us to create commands in PHP. It does all the nasty work of handling input and output.

Autoloading classes in an any PHP project with Symfony2 ClassLoader component

Symfony ClassLoader component is a PSR-0 standard compliant PHP class autoloader. It's not only able to load namespaced code but also supports old-school PEAR standards (also used by Zend Framework). It's a perfect class loading tool for most of PHP projects.