Diese Präsentation wurde erfolgreich gemeldet.
Die SlideShare-Präsentation wird heruntergeladen. ×

FuelPHP presentation - PeoplePerHour workshop

Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Nächste SlideShare
FuelPHP
FuelPHP
Wird geladen in …3
×

Hier ansehen

1 von 26 Anzeige

Weitere Verwandte Inhalte

Diashows für Sie (20)

Ähnlich wie FuelPHP presentation - PeoplePerHour workshop (20)

Anzeige

Aktuellste (20)

FuelPHP presentation - PeoplePerHour workshop

  1. 1. Exploring FuelPHP Why on earth would you do that?
  2. 2. Eeeeewwww you use PHP? • Isn’t PHP like… ancient? • Who writes PHP? You know it’s 2012, right?
  3. 3. We do! • PeoplePerHour does • Facebook does • Mailchimp does
  4. 4. Why PHP • Well established language • Huge community • Great support by hosting providers, docs, libraries, open source projects, frameworks
  5. 5. What is FuelPHP? • (H)MVC PHP Framework • PHP 5.3+ up • 100+ Contributors • Best developers from CodeIgniter and others
  6. 6. Aren’t there more than enough frameworks? many others…
  7. 7. Why is it different • Best ideas from all PHP frameworks combined • Fresh and up to date • Brings new ideas to the table
  8. 8. Idea #1 • Out of the box support for NoSQL – Mongo – Redis
  9. 9. Idea #2 • Unified static method for getting a class singleton //example:! return View::forge('home/index');!
  10. 10. Idea #3 • Utilize PHP namespaces so that the classes can have human readable names echo Form::button('name', 'value’);!
  11. 11. Idea #4 • H-­‐MVC Requests: Controllers can be loaded by controllers as widgets if((Request::main() === Request::active()) {! !// this is the main request! } else {! // this is a HMVC request! }!
  12. 12. Idea #5 • Routers inside controllers
  13. 13. Idea #6 • ViewModels: Even less logic inside views
  14. 14. Idea #7 • Provide various types of controllers for templating: – Base – Rest – Template • Support a load of template engines through Parser package: (Mustache, Markdown, Smarty, Twig, Haml, Jade, Dwoo)
  15. 15. Idea #8 • Extremely easy installation (copy/paste 2 commands)
  16. 16. Idea #9 • Heavily utilize Git(hub) – From installation to packages
  17. 17. Why I like it • No camelCase allowed (surprise) • Super fast to learn • I like the guys that are working on it
  18. 18. So, is it the best framework? • No.
  19. 19. Which PHP framework is the best? • None
  20. 20. Exhibit A: Codeigniter • Project I worked on: As a mobile app I would like to send request to a REST API and get JSON – Only 3 things used: Database, Memcache, JSON
  21. 21. Exhibit B: FuelPHP • Project I’m working on: As a developer I would like to have a playground project that has no actual use and scope, so I can torture myself during the weekends
  22. 22. Choosing a framework is a matter of taste • Choose any framework you want, seriously • Doesn’t mind which one as long as it provides the right tools for the job and you’re building something awesome
  23. 23. But the benchmarks… • Screw the benchmarks • It’s not all about how many requests per second a framework can handle • MVC is slower than plain PHP anyway
  24. 24. Where can I find more info? • fuelphp.org – @fuelphp • Phil Sturgeon – philsturgeon.co.uk -­‐ @philsturgeon • Dan Horrigan – dh.io -­‐ @dhorrigan • Jelmer Schreuder – jelmerschreuder.nl -­‐ @jelmer_fuel
  25. 25. Questions • Go!
  26. 26. What is your weapon of choice? • Thanks

×