Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
phalconのススメ@PHP BLT#5
Search
shun0102
July 20, 2016
Programming
2.4k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
phalconのススメ@PHP BLT#5
shun0102
July 20, 2016
Transcript
16 slides
Phalconͷεεϝ @PHP BLT #5 גࣜձࣾϢʔβʔϩʔΧϧ CTO ࡾ্ढ़ี @shun0102
ϑϨʔϜϫʔΫʹٻΊΔͷ ɾత ɹ- େྔͷτϥϑΟοΫΛ͘͞APIαʔόʔ ɾཉ͍͠ػೳ ɹ- DIίϯςφ ɹ- ϧʔλʔ ɹ-
MVCʢORMͳͯ͘OKʣ ɹ- ੑೳʢ͚Ε͍΄Ͳྑ͍ʣ
ಠࣗϑϨʔϜϫʔΫʁ ɾબࢶͱͯ͠શવ͋Γ ɾυΩϡϝϯτɺϝϯςφϯεੑɺॻ͖͢͞ͳͲ ɾଐਓੑ
ग़యɿhttps://github.com/kenjis/php-framework-benchmark
ࣗͰͱͬͨIFMMPXPSMEϕϯνϚʔΫ ڥ ɾGCP vCPU 2, memory 7.5GB ɾphp 7.0.8
0 1000 2000 3000 4000 raw phalcon 2.1 slim 3.4 lumen 5.4
ͦͷଞؾʹͳΔϑϨʔϜϫʔΫ ɾphalconͰΘΕ͍ͯΔZephirͰ࡞ΒΕͨIce ɾAuraͳͲͷίϯϙωϯτΛͬͨಠࣗϑϨʔϜϫʔΫʁ
1IBMDPOͷհ ɾCݴޠͰ࡞ΒΕͨPHPΤΫεςϯγϣϯ ɾ1.3ܥɿݹ͍҆ఆ൛ ɾ2.0ܥɿZephirͰ࡞Γ͞Εͨ৽͍҆͠ఆ൛ ɾ2.1ܥɿ2.1.0 rc1·ͰϦϦʔε PHP 7.0αϙʔτ LTS(3)ʹͳΔ༧ఆ
1IBMDPO։ൃऀπʔϧ $ phalcon project phalcon_hello ɾϓϩδΣΫτͷܗͷ࡞ ɾར༻ՄೳͳίϚϯυ $ phalcon commands
Available commands: commands (alias of: list, enumerate) controller (alias of: create-controller) module (alias of: create-module) model (alias of: create-model) all-models (alias of: create-all-models) project (alias of: create-project) scaffold (alias of: create-scaffold) migration (alias of: create-migration) webtools (alias of: create-webtools)
$ tree . ᵓ── app │ ᵓ── cache │ ᵓ──
config │ │ ᵓ── config.php │ │ ᵓ── loader.php │ │ └── services.php │ ᵓ── controllers │ │ ᵓ── ControllerBase.php │ │ └── IndexController.php │ ᵓ── migrations │ ᵓ── models │ └── views │ ᵓ── index │ │ └── index.volt │ ᵓ── index.volt │ └── layouts ᵓ── index.html └── public ᵓ── css ᵓ── files ᵓ── img ᵓ── index.php ᵓ── js └── temp σΟϨΫτϦߏࣗ༝͕ͩɺܗ͋Δ
ґଘੑͷೖ %* <?php use Phalcon\Session\Adapter\Files as SessionFiles; $di = new
Phalcon\Di(); $di->setShared('session', function () { $session = new SessionFiles(); $session->start(); return $session; }); $session = $di->get('session');
ϧʔςΟϯά 3PVUJOH
ΞϊςʔγϣϯʹΑΔϧʔλʔ
ΞϊςʔγϣϯʹΑΔϧʔλʔ
.7$ $ tree . ᵓ── app │ ᵓ── controllers │
│ ᵓ── ControllerBase.php │ │ └── IndexController.php │ ᵓ── models │ └── views │ ᵓ── index │ │ └── index.volt │ ᵓ── index.volt │ └── layouts
.7$ ɾView: VoltςϯϓϨʔτΤϯδϯʢΘͳͯ͘ྑ͍ʣ ɾModel: ಠࣗͷPHQL
·ͱΊ ɾߴͳPHP framework PhalconΛհ ɾࣗͷϕϯνϚʔΫͰੜPHPͷ1/2͘Β͍ɺ ɹଞΑΓ̎ഒҎ্͍ ɾػೳͱͯ͠DI, ϧʔςΟϯά, MVCͷհ
Other Decks in Programming
See All in Programming
自宅サーバはどこまで再現できるのか - Proxmox VE上のVM環境をIaCとバックアップで戻してみた
youto
0
420
例外からRich Errorsまで Kotlinエラーハンドリングの進化を読み解く
shiita0903
0
210
疎結合とは何か?ソフトウェア設計における結合バランスについて考える #phpcon_niigata
kajitack
2
290
AI駆動開発4年目の現在地(『あなたはFDEになるべきか?』イベント資料)
kumaiu
0
650
エージェントを使い続けるためのメタワーク / Meta-work for keeping using the agent
rkaga
6
2.4k
社内AIエージェント「Askワンバン」における コストチューニングの取り組み
t0yohei
0
170
조합이폭발하는디자인시스템이걸눈으로도테스트하라고요
giljongyu
0
770
Getting Started with Vibe Coding
miccheng
0
240
Scalaの型でマルチテナントの認可を守る
nextbeatdev
0
150
あなたの await、OS まで届いてる? strace で覗く JavaScript の非同期
hasutosasaki
1
2.4k
[DroidKnights 2026] Workflow AX 적용기 — 자동 정책 정리부터 E2E까지
dayeon
0
100
Kawaiicon: Kubernetes, it's no longer cool, but let's secure it anyway!
barnbarn
0
130
Featured
See All Featured
Abbi's Birthday
coloredviolet
5
11k
Build your cross-platform service in a week with App Engine
jlugia
234
19k
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
6
940
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
1
300
Heart Work Chapter 1 - Part 1
lfama
PRO
11
37k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
490
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.9k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.9k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
830
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.8k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k