PHPModerno= 'Jonata Weber' ?>
View Slide
@JonataWeber
Versões Suportadas
PSRsPHP Standards Recommendations1 - Basic Coding Standard2 - Coding Style Guide3 - Logger Interface4 - Autoloading Standard6 - Caching Interface7 - HTTP Message Interface11 - Container Interface13 - Hypermedia Links16 - Simple Cache
composer.json{"require": {"monolog/monolog": "1.0.*"}}php composer.phar installhttp://www.packagist.org
Monologgithub.com/Seldaek/monologIFTTT, SendGrid, Slack, NewRelic,Redis, Mongo, etc...
www.phptherightway.com
Model-View-Controller
foo.php
models/FooModel.phpviews/foo-list.php
AnonymousFunctionshttp://php.net/manual/pt_BR/functions.anonymous.php
AnonymousClasshttps://secure.php.net/manual/pt_BR/language.oop5.anonymous.php
Traitshttp://php.net/manual/pt_BR/language.oop5.traits.php
Namespaceshttp://php.net/manual/pt_BR/language.namespaces.php
Generatorshttps://secure.php.net/manual/pt_BR/language.generators.php
SPLStandard PHP Library● Estrutura de Dados● Iteradores● Interfaces● Exceções● Manipulação de Arquivos● Classes e Interfaces Genéricas
Buit in serverPHP >= 5.4 (2012)$ php -S localhost:8000
PHP 7https://secure.php.net/manual/pt_BR/migration70.new-features.php● Scalar Type Hints● Return Type Declarations● Spaceship Operator (<=>)● Null Coalesce Operator (??)● Arrays Constantes● Performance
Types
Microframeworks● Silex - silex.sensiolabs.org● Slim - slimframework.com● Lumen - lumen.laravel.com● Zend Expressive
Servers ● PaaS - Plataform as a Service● Virtual ou Dedicated Servers● nginx e PHP-FPM● Docker e Vagrant
Deployment ● Rocketeer● Phing● Deployer
Livecoding
Perguntas?@JonataWeberbit.ly/ws-cursos
Referências● phptherightway.com● Livro PHP Moderno - O'Reilly● https://www.youtube.com/watch?v=ZQVztAwoHUA