Slide 1

Slide 1 text

Roll your own micro framework

Slide 2

Slide 2 text

Me, myself & I Niklas Modess Remote freelancer / consultant Organizer of Laravel Stockholm meetup group Author of Deploying PHP Appplications Blogger at http://modess.io @niklasmodess

Slide 3

Slide 3 text

Framework (de)coupling

Slide 4

Slide 4 text

SHOTS FIRED, COMMENCE FLAME WARS!

Slide 5

Slide 5 text

Service oriented architecture (Micro Services)

Slide 6

Slide 6 text

Simple RESTful API with Laravel? 4 classpreloader/classpreloader 4 danielstjules/stringy 4 doctrine/inflector 4 jeremeamia/superclosure 4 league/flysystem 4 monolog/monolog 4 mtdowling/cron-expression

Slide 7

Slide 7 text

4 nesbot/carbon 4 psy/psysh 4 swiftmailer/swiftmailer 4 symfony/console 4 symfony/css-selector 4 symfony/debug 4 symfony/dom-crawler 4 symfony/finder

Slide 8

Slide 8 text

4 symfony/http-foundation 4 symfony/http-kernel 4 symfony/process 4 symfony/routing 4 symfony/translation 4 symfony/var-dumper 4 vlucas/phpdotenv

Slide 9

Slide 9 text

S.O.L.I.D 4 Single responsibility principle 4 Open/closed principle 4 Liskov substitution principle 4 Interface segregation principle 4 Dependency inversion principle

Slide 10

Slide 10 text

Inversion of Control IoC

Slide 11

Slide 11 text

instead of this... dispatch();

Slide 12

Slide 12 text

we do this... get('Router'); // some code.. $router->dispatch();

Slide 13

Slide 13 text

Let's build stuff 4 Application container (DI/IoC) 4 Router interface 4 Router implementations 4 Hot-swapping router implementations