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
Building APIs with Lumen
Search
Ian Rodrigues
December 17, 2016
Technology
0
62
Building APIs with Lumen
Ian Rodrigues
December 17, 2016
Tweet
Share
More Decks by Ian Rodrigues
See All by Ian Rodrigues
Trabalhando com Value Objects no PHP
ianrodrigues
0
350
Testando PHP na Prática - 5º Encontro de Devs PHP com Rapadura
ianrodrigues
1
63
Refactoring: porquê, quando e como
ianrodrigues
1
120
Refactoring: porque, quando e como
ianrodrigues
0
96
Other Decks in Technology
See All in Technology
(HackFes)米国国防総省のDevSecOpsライフサイクルをAWSのセキュリティサービスとOSSで実現
syoshie
5
660
AI Ready API ─ AI時代に求められるAPI設計とは?/ AI-Ready API - Designing MCP and APIs in the AI Era
yokawasa
20
5.8k
AIコードアシスタントとiOS開発
jollyjoester
1
230
AI工学特論: MLOps・継続的評価
asei
10
1.5k
手動からの解放!!Strands Agents で実現する総合テスト自動化
ideaws
2
290
20250718_ITSurf_“Bet AI”を支える文化とコストマネジメント
helosshi
1
210
MCPと認可まわりの話 / mcp_and_authorization
convto
1
130
Data Engineering Study#30 LT資料
tetsuroito
1
560
The Madness of Multiple Gemini CLIs Developing Simultaneously with Jujutsu
gunta
1
2.5k
Power Automate のパフォーマンス改善レシピ / Power Automate Performance Improvement Recipes
karamem0
0
130
TypeScript 上達の道
ysknsid25
5
540
M365アカウント侵害時の初動対応
lhazy
7
4.5k
Featured
See All Featured
Building Flexible Design Systems
yeseniaperezcruz
328
39k
Optimising Largest Contentful Paint
csswizardry
37
3.3k
Being A Developer After 40
akosma
90
590k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
8
710
Side Projects
sachag
455
43k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
760
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
8
370
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.8k
Making the Leap to Tech Lead
cromwellryan
134
9.4k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.9k
Designing for Performance
lara
610
69k
Designing for humans not robots
tammielis
253
25k
Transcript
BUILDING APIs WITH LUMEN Ian Rodrigues - @ianrodriguesbr Darkmira Tour
Community & PHP com Rapadura 2016
WHO AM I? IAN RODRIGUES - Since 2009 - Laravel/Lumen
- Clean Code & TDD - Hypnologist on spare time - @ianrodriguesbr
ianrodriguesbr.github.io
ABOUT LUMEN - Micro Framework - Released on April 2015
- Comes from Laravel - http://lumen.laravel.com
WHAT IS AN API?
RESTful APIs REpresentational State Transfer Resources HTTP Verbs - GET
- POST - PUT - DELETE Universal Syntax
RESTful APIs REpresentational State Transfer Resources HTTP Verbs - GET
- POST - PUT - DELETE Universal Syntax
RESTful APIs REpresentational State Transfer Resources HTTP Verbs - GET
- POST - PUT - DELETE Universal Syntax
RESTful APIs REpresentational State Transfer Resources HTTP Verbs - GET
- POST - PUT - DELETE Universal Syntax
RESTful APIs GET POST GET PUT DELETE /users /users /users/1
/users/1 /users/1
RESTful APIs GET POST GET PUT DELETE /users /users /users/1
/users/1 /users/1
RESTful APIs GET POST GET PUT DELETE /users /users /users/1
/users/1 /users/1
404 - Not Found
WHY LUMEN?
Why Lumen? Less Configuration Comes from Laravel Easy to Test
Too Fast
Why Lumen? Less Configuration Comes from Laravel Easy to Test
Too Fast
Why Lumen? Less Configuration Comes from Laravel Easy to Test
Too Fast
Why Lumen? Less Configuration Comes from Laravel Easy to Test
Too Fast
REALY TOO FAST
Benchmarking Silex Slim 3 Lumen 1000 1800 1900 Requests per
Second
~$ lumen new book-store Crafting application... Application ready! Build something
amazing.
// bootstrap/app.php $app->withFacades(); $app->withEloquent();
~/book-store $ phpunit OK (1 test, 1 assertion)
GET /books - Get all Books POST /books - Create
a new Book GET /books/{id} - Get a Book PUT /books/{id} - Update a Book DELETE /books/{id} - Delete a Book
TALK IS CHEAP. SHOW ME THE CODE, BITCH!
USEFUL TOOLS!
Useful Tools Postman - Chrome Extension HTTPie - CLI HTTP
Client
Resources Laravel & Lumen Docs - https://lumen.laravel.com/docs/5.3 Paul Redmond’s Book
- http://www.apress.com/gp/book/9781484221860 Phil Sturgeon’s Book - https://apisyouwonthate.com/
THANK YOU! Ian Rodrigues - @ianrodriguesbr Darkmira Tour Community &
PHP com Rapadura 2016