EmpireStrikesBack {} new EmpireStrikesBack(); // \Favorites\EmpireStrikesBack() new Awesome\EmpireStrikesBack(); // \Favorites\Awesome\EmpireStrikesBack() new \Awesome\EmpireStrikesBack(); // \Awesome\EmpireStrikesBack() new Something(); // \Awesome\EmpireStrikesBack() new LaptiNeck(); // \Awesome\LaptiNeck() new \Exception(); // \Exception ?> CC BY-NC 4.0 Justin Yost 19
dependencies » Includes an autoloader to load said dependencies » Pretty much every framework supports/requires composer » Composer includes pretty good information on using it without a framework CC BY-NC 4.0 Justin Yost 26
EmpireStrikesBack {} new EmpireStrikesBack(); // \Favorites\EmpireStrikesBack() new Awesome\EmpireStrikesBack(); // \Favorites\Awesome\EmpireStrikesBack() new \Awesome\EmpireStrikesBack(); // \Awesome\EmpireStrikesBack() new LaptiNeck(); // \Awesome\LaptiNeck() new \Exception(); // \Exception ?> CC BY-NC 4.0 Justin Yost 29
real problem » Namespaces are actually relatively easy » PSR-4 doesn't require a lot of work » Implement composer and you solve several problems CC BY-NC 4.0 Justin Yost 30