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
41
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
140
Other Decks in Programming
See All in Programming
コードに語らせよう――自己ドキュメント化が内包する楽しさについて / Let the Code Speak
nrslib
5
1.1k
REST API設計の実践 – ベストプラクティスとその落とし穴
kentaroutakeda
2
320
try-catchを使わないエラーハンドリング!? PHPでResult型の考え方を取り入れてみよう
kajitack
3
340
DevTalks 25 - Create your own AI-infused Java apps with ease
kdubois
2
120
AI Coding Agent Enablement in TypeScript
yukukotani
17
7.2k
Efficiency and Rock 'n’ Roll (Really!)
hollycummins
0
600
〜可視化からアクセス制御まで〜 BigQuery×Looker Studioで コスト管理とデータソース認証制御する方法
cuebic9bic
2
270
RubyKaigiで得られる10の価値 〜Ruby話を聞くことだけが RubyKaigiじゃない〜
tomohiko9090
0
100
#QiitaBash TDDでAIに設計イメージを伝える
ryosukedtomita
2
1.6k
CQRS/ESのクラスとシステムフロー ~ RailsでフルスクラッチでCQRSESを組んで みたことから得た学び~
suzukimar
0
190
技術懸念に立ち向かい 法改正を穏便に乗り切った話
pop_cashew
0
830
Parallel::Pipesの紹介
skaji
2
870
Featured
See All Featured
GraphQLの誤解/rethinking-graphql
sonatard
71
11k
Large-scale JavaScript Application Architecture
addyosmani
512
110k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
42
2.3k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
32
5.8k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Testing 201, or: Great Expectations
jmmastey
42
7.5k
Into the Great Unknown - MozCon
thekraken
39
1.8k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
Raft: Consensus for Rubyists
vanstee
137
7k
Documentation Writing (for coders)
carmenintech
71
4.8k
The Language of Interfaces
destraynor
158
25k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
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