Welcome to my the POO Project - A simply example to understand POO PHP with Composer.json & Symfony 2 Components
- Autoloading via Composer with PSR-4
- Classes: attributes & getters/setters & constructor
- Optional Arguments & Encapsulation's Argument
- Magic Methods in class
- Resolving attributes
- Inheritance & Abstract & Final Class é Interfaces
- Traits
- Exceptions
- API Reflexion with ReflectionObject && ReflectionClass for Plugins examples
curl -sS https://getcomposer.org/installer | php
Puis
php composer.phar install
OU
php composer.phar require symfony/finder
Exemple:
{
"require": {
"symfomany/cinhetic": "*"
}
}
If you don't have Composer yet, download it following the instructions on http://getcomposer.org/ or just run the following command:
curl -s https://getcomposer.org/installer | php
Next, run the vendors script to download the bundles:
$ php bin/vendors install
13 Symfony Components used
------------------
* Debug Component
* Console Component
* Filesystem Component
* HTTP Fundations Component
* YAML Component
* Finder Component
* Process Component
* Config Component
* Dependency Injection Component
* Css Selector Component
* Dom Crawler Component
* Monolog Component
* StopWatch Component