Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
PHP Moderno
Search
Jonata Weber
October 23, 2017
Programming
0
100
PHP Moderno
Jonata Weber
October 23, 2017
Tweet
Share
More Decks by Jonata Weber
See All by Jonata Weber
PHPStan - Analisador Estático
jonataa
0
110
TemDendê: Desenvolvimento PHP a Moda Baiana
jonataa
0
43
Programação Reativa com RxJS
jonataa
0
120
O que esperar de um profissional de TI
jonataa
0
37
A onda agora é função como serviço
jonataa
0
32
Programação Funcional com Acarajé e Dendê
jonataa
0
55
Curso de Programação Funcional com JavaScript
jonataa
0
140
Medindo a Performance de Códigos PHP
jonataa
0
62
5 motivos para você participar de eventos
jonataa
0
150
Other Decks in Programming
See All in Programming
データベースコネクションプール(DBCP)の変遷と理解
fujikawa8
1
270
GoのGenericsによるslice操作との付き合い方
syumai
2
670
DroidKnights 2025 - 다양한 스크롤 뷰에서의 영상 재생
gaeun5744
3
300
A2A プロトコルを試してみる
azukiazusa1
2
810
型付きアクターモデルがもたらす分散シミュレーションの未来
piyo7
0
800
FormFlow - Build Stunning Multistep Forms
yceruto
1
190
Datadog RUM 本番導入までの道
shinter61
1
310
XP, Testing and ninja testing
m_seki
2
110
Java on Azure で LangGraph!
kohei3110
0
160
「ElixirでIoT!!」のこれまでとこれから
takasehideki
0
370
The Evolution of Enterprise Java with Jakarta EE 11 and Beyond
ivargrimstad
1
840
明示と暗黙 ー PHPとGoの インターフェイスの違いを知る
shimabox
1
120
Featured
See All Featured
Optimizing for Happiness
mojombo
379
70k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
16
940
It's Worth the Effort
3n
184
28k
GraphQLの誤解/rethinking-graphql
sonatard
71
11k
VelocityConf: Rendering Performance Case Studies
addyosmani
330
24k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
46
9.6k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
331
22k
Speed Design
sergeychernyshev
31
1k
For a Future-Friendly Web
brad_frost
179
9.8k
Writing Fast Ruby
sferik
628
61k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
8
790
The Straight Up "How To Draw Better" Workshop
denniskardys
233
140k
Transcript
PHP Moderno <?= 'Jonata Weber' ?>
@JonataWeber
Versões Suportadas
PSRs PHP Standards Recommendations 1 - Basic Coding Standard 2
- Coding Style Guide 3 - Logger Interface 4 - Autoloading Standard 6 - Caching Interface 7 - HTTP Message Interface 11 - Container Interface 13 - Hypermedia Links 16 - Simple Cache
composer.json { "require": { "monolog/monolog": "1.0.*" } } php composer.phar
install http://www.packagist.org
None
Monolog github.com/Seldaek/monolog IFTTT, SendGrid, Slack, NewRelic, Redis, Mongo, etc...
www.phptherightway.com
Model-View-Controller
foo.php
models/FooModel.php views/foo-list.php
Anonymous Functions http://php.net/manual/pt_BR/function s.anonymous.php
Anonymous Class https://secure.php.net/manual/pt_BR /language.oop5.anonymous.php
Traits http://php.net/manual/pt_BR/languag e.oop5.traits.php
Namespaces http://php.net/manual/pt_BR/languag e.namespaces.php
Generators https://secure.php.net/manual/pt_BR /language.generators.php
SPL Standard PHP Library • Estrutura de Dados • Iteradores
• Interfaces • Exceções • Manipulação de Arquivos • Classes e Interfaces Genéricas
Buit in server PHP >= 5.4 (2012) $ php -S
localhost:8000
PHP 7 https://secure.php.net/manual/pt_BR/migration7 0.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? @JonataWeber bit.ly/ws-cursos
Referências • phptherightway.com • Livro PHP Moderno - O'Reilly •
https://www.youtube.com/watch?v=ZQVztAwoHUA