Why I stopped
worrying and
LOVED PHP
Chris Ozog - Codesushi CTO
Agenda:
1. 2 words about me
2. Why does PHP have a bad reputation, so a bit of history
3. PHP 5.3 and the birth of Symfony
4. Modern PHP on the example of Symfony
5. Why is it worth to invest time in PHP
2 words about meIn the context of the history of PHP
● First PHP app in 2004
● I did not want to become a PHP guy
● Things turned out differently…
● In the meantime, PHP has changed a lot
● Apart from the above: Codesushi CTO
Why does PHP have a bad reputation, so a bit of history:
The wild west (1995 ~ 2006)
● The first version of PHP - 1995
● The spaghetti code era
○ No design patterns were used
○ No separation of PHP code from HTML
○ More emphasis on something working than on the quality of the code
● Spaghetti is no longer tasty - Ruby on Rails comes to life (2004)
○ Everyone wants to be RoR - CakePHP and Django (python) appear
● Symfony 1 comes into play. November 2005
Why does PHP have a bad reputation, so a bit of history:
Brave new world (2006 ~ 2011)
● The first version of Symfony 1. 22.10.2005
● The framework war
○ CakePHP, CodeIgniter, Symfony, ZendFramework
● A problem! No possibility to share the code between
frameworks
● PHP 5 – starts to exhaust its capabilities
○ Long class names to simulate namespaces
● 2009 - PHP 5.3 and PSR standards come to life
● The release of Symfony 2, July 2011
PHP 5.3 – a breakthrough PHP version
● 2009 – 1st
version of PHP 5.3
● Introduced namespaces
● Improved efficiency
● Anonymous functions
● Closures
● Improved object-orientation
● Allowed to create new frameworks such as
Symfony 2
The birth of Symfony
● July 2011 – first version
● Implementation of PSR-0,1,2 standards
● Leaving the RAD concept – a shift in terms of
approach
● The Twig template system
● The Bunldes concept
● The Components concept
● Focusing on the Dependency Injection model and
Decoupling
● Starting with the 2.1 version – switching to the
composer in order to manage dependencies
● Symfony distributions - (RAD, CMF, REST)
Modern PHP on the example of Symfony
● Decoupling
● Dependency Injection
● Clean code
● SOLID Code
Why is it worth to invest time in PHP
● PHP 7
● It’s still the king of the web
● Symfony’s impact on the entire
ecosystem
● It’s a decent language
Thank you for
your attention :)
e-mail: hello@codesushi.co
www: codesushi.coChris Ozog
Codesushi CTO

Why I stopped worrying and loved PHP | Codesushi - Krakow 2017

  • 1.
    Why I stopped worryingand LOVED PHP Chris Ozog - Codesushi CTO
  • 2.
    Agenda: 1. 2 wordsabout me 2. Why does PHP have a bad reputation, so a bit of history 3. PHP 5.3 and the birth of Symfony 4. Modern PHP on the example of Symfony 5. Why is it worth to invest time in PHP
  • 3.
    2 words aboutmeIn the context of the history of PHP ● First PHP app in 2004 ● I did not want to become a PHP guy ● Things turned out differently… ● In the meantime, PHP has changed a lot ● Apart from the above: Codesushi CTO
  • 4.
    Why does PHPhave a bad reputation, so a bit of history: The wild west (1995 ~ 2006) ● The first version of PHP - 1995 ● The spaghetti code era ○ No design patterns were used ○ No separation of PHP code from HTML ○ More emphasis on something working than on the quality of the code ● Spaghetti is no longer tasty - Ruby on Rails comes to life (2004) ○ Everyone wants to be RoR - CakePHP and Django (python) appear ● Symfony 1 comes into play. November 2005
  • 5.
    Why does PHPhave a bad reputation, so a bit of history: Brave new world (2006 ~ 2011) ● The first version of Symfony 1. 22.10.2005 ● The framework war ○ CakePHP, CodeIgniter, Symfony, ZendFramework ● A problem! No possibility to share the code between frameworks ● PHP 5 – starts to exhaust its capabilities ○ Long class names to simulate namespaces ● 2009 - PHP 5.3 and PSR standards come to life ● The release of Symfony 2, July 2011
  • 6.
    PHP 5.3 –a breakthrough PHP version ● 2009 – 1st version of PHP 5.3 ● Introduced namespaces ● Improved efficiency ● Anonymous functions ● Closures ● Improved object-orientation ● Allowed to create new frameworks such as Symfony 2
  • 7.
    The birth ofSymfony ● July 2011 – first version ● Implementation of PSR-0,1,2 standards ● Leaving the RAD concept – a shift in terms of approach ● The Twig template system ● The Bunldes concept ● The Components concept ● Focusing on the Dependency Injection model and Decoupling ● Starting with the 2.1 version – switching to the composer in order to manage dependencies ● Symfony distributions - (RAD, CMF, REST)
  • 8.
    Modern PHP onthe example of Symfony ● Decoupling ● Dependency Injection ● Clean code ● SOLID Code
  • 9.
    Why is itworth to invest time in PHP ● PHP 7 ● It’s still the king of the web ● Symfony’s impact on the entire ecosystem ● It’s a decent language
  • 10.
    Thank you for yourattention :) e-mail: hello@codesushi.co www: codesushi.coChris Ozog Codesushi CTO