Symfony2Введение
О себеДорошенко Владимирhttp://about.me/vl4dimirSkype: v14d1m1rEmail: vovabox@gmail.com
План● Введение в Symfony2● Composer - менеджер зависимостей дляPHP
Web Application Frameworks● CakePHP● CodeIgniter● Drupal● Kohana● Lavarel● Silex● Symfony● Yii● Zend Framework?
Symfony2 - первый взгляд● свободно распространяемый (MIT) webapplication framework● реализует паттерн MVC● PHP 5● спонсиру...
Symfony2 harmonyFrameworkPhilosophy CommunityToolbox Methodology
История● 1.0 Январь 2007 (>= 5.0)● 1.2 Декабрь 2008 (>= 5.2)● 1.4 Ноябрь 2009 (>= 5.2.4)● 2.0 Июль 2011 (>= 5.3.2)● 2.1 Се...
УправлениезависимостямиProjectFacebookSDKv 3.2.2DoctrineORM v 2.2.*Monologv 1.5.*
Composer - установкаhttp://getcomposer.org/doc/$ curl -sS https://getcomposer.org/installer | php$ php composer.phar
composer.json{"require": {"monolog/monolog": "1.5.*"}}
composer.json>, >=, <, <=, != >=1.0,<2.0* 1.0.* [>=1.0,<1.1]~~1.2 [>=1.2,<2.0]~1.2.3 [>=1.2.3,<1.3]dev-{branchname} dev-ma...
Репозитории - packagist
Репозитории - VCS{"repositories": [{"type": "vcs","url": "https://github.com/igorw/monolog"}],"require": {"monolog/monolog...
Репозитории - PEAR{"repositories": [{"type": "pear","url": "http://pear2.php.net"}],"require": {"pear-pear2.php.net/PEAR2_...
Репозитории - package{"repositories": [{"type": "package","package": {"name": "smarty/smarty","version": "3.1.7","dist": {...
Установка зависимостей$ php composer.phar install
Autoloadingrequire vendor/autoload.php;
Autoloading{"autoload": {"psr-0": {"": "src/"}}}
composer.lock$ php composer.phar update$ php composer.phar update monolog/monolog
THE END
Prochain SlideShare
Chargement dans…5
×

Symfony2. Lesson 1

912 vues

Publié le

0 commentaire
0 j’aime
Statistiques
Remarques
  • Soyez le premier à commenter

  • Soyez le premier à aimer ceci

Aucun téléchargement
Vues
Nombre de vues
912
Sur SlideShare
0
Issues des intégrations
0
Intégrations
2
Actions
Partages
0
Téléchargements
5
Commentaires
0
J’aime
0
Intégrations 0
Aucune incorporation

Aucune remarque pour cette diapositive

Symfony2. Lesson 1

  1. 1. Symfony2Введение
  2. 2. О себеДорошенко Владимирhttp://about.me/vl4dimirSkype: v14d1m1rEmail: vovabox@gmail.com
  3. 3. План● Введение в Symfony2● Composer - менеджер зависимостей дляPHP
  4. 4. Web Application Frameworks● CakePHP● CodeIgniter● Drupal● Kohana● Lavarel● Silex● Symfony● Yii● Zend Framework?
  5. 5. Symfony2 - первый взгляд● свободно распространяемый (MIT) webapplication framework● реализует паттерн MVC● PHP 5● спонсируется компанией Sensio
  6. 6. Symfony2 harmonyFrameworkPhilosophy CommunityToolbox Methodology
  7. 7. История● 1.0 Январь 2007 (>= 5.0)● 1.2 Декабрь 2008 (>= 5.2)● 1.4 Ноябрь 2009 (>= 5.2.4)● 2.0 Июль 2011 (>= 5.3.2)● 2.1 Сентябрь 2012 (>= 5.3.3)● 2.2 Март 2013 (>= 5.3.3)● 2.3 Май 2013 (>= 5.3.3)
  8. 8. УправлениезависимостямиProjectFacebookSDKv 3.2.2DoctrineORM v 2.2.*Monologv 1.5.*
  9. 9. Composer - установкаhttp://getcomposer.org/doc/$ curl -sS https://getcomposer.org/installer | php$ php composer.phar
  10. 10. composer.json{"require": {"monolog/monolog": "1.5.*"}}
  11. 11. composer.json>, >=, <, <=, != >=1.0,<2.0* 1.0.* [>=1.0,<1.1]~~1.2 [>=1.2,<2.0]~1.2.3 [>=1.2.3,<1.3]dev-{branchname} dev-master
  12. 12. Репозитории - packagist
  13. 13. Репозитории - VCS{"repositories": [{"type": "vcs","url": "https://github.com/igorw/monolog"}],"require": {"monolog/monolog": "dev-bugfix"}}
  14. 14. Репозитории - PEAR{"repositories": [{"type": "pear","url": "http://pear2.php.net"}],"require": {"pear-pear2.php.net/PEAR2_Text_Markdown": "*","pear-pear2/PEAR2_HTTP_Request": "*"}}
  15. 15. Репозитории - package{"repositories": [{"type": "package","package": {"name": "smarty/smarty","version": "3.1.7","dist": {"url": "http://www.smarty.net/files/Smarty-3.1.7.zip","type": "zip"},"autoload": {"classmap": ["libs/"]}}}],"require": {"smarty/smarty": "3.1.*"}}
  16. 16. Установка зависимостей$ php composer.phar install
  17. 17. Autoloadingrequire vendor/autoload.php;
  18. 18. Autoloading{"autoload": {"psr-0": {"": "src/"}}}
  19. 19. composer.lock$ php composer.phar update$ php composer.phar update monolog/monolog
  20. 20. THE END

×