Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Through the (pack)ages

Emma Fabre
September 25, 2016

Through the (pack)ages

A quick walk around how to make packages-based applications and why

Emma Fabre

September 25, 2016
Tweet

More Decks by Emma Fabre

Other Decks in Programming

Transcript

  1. 1 'sup if you can read this you have very

    good vision
 congratulations
  2. WHO THE FUCK ARE YOU MAXIME FABRE ‣ I'm 26

    ye too old for this shit ‣ Been at since 2013 2
  3. WHO THE FUCK ARE YOU MAXIME FABRE ‣ I'm 26

    ye too old for this shit ‣ Been at since 2013 ‣ I'm FRANÇAIS woop woop 2
  4. WHO THE FUCK ARE YOU MAXIME FABRE ‣ I'm 26

    ye too old for this shit ‣ Been at since 2013 ‣ I'm FRANÇAIS woop woop ‣ I take pictures, compose some music, and occasionally rage against misplaced braces 2
  5. 2016 7 THE FRAMEWORK'S HORRENDOUS CODE YOUR HORRENDOUS PHP7 CODE

    THE FRAMEWORK'S HORRENDOUS PACKAGES SOMEONE ELSE'S HORRENDOUS PACKAGES
  6. 2016 8 THE FRAMEWORK'S HORRENDOUS CODE YOUR HORRENDOUS PHP7 CODE

    THE FRAMEWORK'S HORRENDOUS PACKAGES SOMEONE ELSE'S HORRENDOUS PACKAGES
  7. 9

  8. 2016 10 THE FRAMEWORK'S HORRENDOUS CODE YOUR HORRENDOUS PHP7 CODE

    THE FRAMEWORK'S HORRENDOUS PACKAGES SOMEONE ELSE'S HORRENDOUS PACKAGES
  9. 2016 10 THE FRAMEWORK'S HORRENDOUS CODE YOUR HORRENDOUS PHP7 CODE

    THE FRAMEWORK'S HORRENDOUS PACKAGES SOMEONE ELSE'S HORRENDOUS PACKAGES
  10. 2016 10 THE FRAMEWORK'S HORRENDOUS CODE YOUR HORRENDOUS PHP7 CODE

    THE FRAMEWORK'S HORRENDOUS PACKAGES SOMEONE ELSE'S HORRENDOUS PACKAGES tough luck
 buddy
  11. 11

  12. 11

  13. HOW DO I MAKE DO THE THING THAT YOU SAY

    I NEED DO I. IDENTIFY YOUR NEEDS 16
  14. HOW DO I MAKE DO THE THING THAT YOU SAY

    I NEED DO I. IDENTIFY YOUR NEEDS ▸ HTTP 16
  15. HOW DO I MAKE DO THE THING THAT YOU SAY

    I NEED DO I. IDENTIFY YOUR NEEDS ▸ HTTP ▸ Routing 16
  16. HOW DO I MAKE DO THE THING THAT YOU SAY

    I NEED DO I. IDENTIFY YOUR NEEDS ▸ HTTP ▸ Routing ▸ Database interactions 16
  17. HOW DO I MAKE DO THE THING THAT YOU SAY

    I NEED DO I. IDENTIFY YOUR NEEDS ▸ HTTP ▸ Routing ▸ Database interactions ▸ Dependencies management 16
  18. HOW DO I MAKE DO THE THING THAT YOU SAY

    I NEED DO I. IDENTIFY YOUR NEEDS ▸ HTTP ▸ Routing ▸ Database interactions ▸ Dependencies management ▸ etc. 16
  19. HOW DO I MAKE DO THE THING THAT YOU SAY

    I NEED DO II. FIND STANDALONE PACKAGES 17
  20. HOW DO I MAKE DO THE THING THAT YOU SAY

    I NEED DO II. FIND STANDALONE PACKAGES ▸ For isolated needs, just look on Packagist 17
  21. HOW DO I MAKE DO THE THING THAT YOU SAY

    I NEED DO II. FIND STANDALONE PACKAGES ▸ For isolated needs, just look on Packagist ▸ If you only find framework-specific packages, check what they're built upon 17
  22. HOW DO I MAKE DO THE THING THAT YOU SAY

    I NEED DO II. FIND STANDALONE PACKAGES ▸ For isolated needs, just look on Packagist ▸ If you only find framework-specific packages, check what they're built upon ▸ Whenever possible, try to look for PSR packages 17
  23. HOW DO I MAKE DO THE THING THAT YOU SAY

    I NEED DO II. FIND STANDALONE PACKAGES ▸ For isolated needs, just look on Packagist ▸ If you only find framework-specific packages, check what they're built upon ▸ Whenever possible, try to look for PSR packages ▸ If there is no PSR for what you need, code to an interface (but you already should be so that's ok) 17
  24. PSRS ARE KINDA COOL I GUESS hannes probably HOW DO

    I MAKE DO THE THING THAT YOU SAY I NEED DO 18
  25. HOW DO I MAKE DO THE THING THAT YOU SAY

    I NEED DO III. KNOW YOUR PSRS 19
  26. HOW DO I MAKE DO THE THING THAT YOU SAY

    I NEED DO III. KNOW YOUR PSRS ▸ Autoloading: PSR4 19
  27. HOW DO I MAKE DO THE THING THAT YOU SAY

    I NEED DO III. KNOW YOUR PSRS ▸ Autoloading: PSR4 ▸ HTTP: PSR7 and PSR15 19
  28. HOW DO I MAKE DO THE THING THAT YOU SAY

    I NEED DO III. KNOW YOUR PSRS ▸ Autoloading: PSR4 ▸ HTTP: PSR7 and PSR15 ▸ Container: container-int (PSR11) and definition-int 19
  29. WHO NEEDS SLIDES ANYWAY also hannes probably HOW DO I

    MAKE DO THE THING THAT YOU SAY I NEED DO 20
  30. 21

  31. 21

  32. 22

  33. anahkiasen
 anahkiasen
 anahkiasen
 anahkiasen
 anahkiasen
 anahkiasen
 anahkiasen
 anahkiasen
 anahkiasen facebook.com/


    twitter.com/
 github.com/
 flickr.com/
 last.fm/user/
 steamcommunity.com/id/
 blogs.wefrag.com/
 soundcloud.com/
 trakt.tv/users/ thnk u • ◡•