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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
テストだけで見つかる? Rubyでつくるメソッド発掘器
izawa
0
160
エージェントの管理もエージェントに – herdr-core と自作バックログで作る司令塔 –
nearme_tech
PRO
2
130
読みやすい!と評判(?)の発表の準備にかける私のこだわり
shoheimitani
0
170
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
420
[DroidKnights 2026] Workflow AX: From Auto-Documented Policies to E2E Testing
raeminkang
0
610
小さなアプリを作って公開するまで
onozaty
0
240
仕様駆動開発入門 (何を作るかを先に決めて渡す) | 目指せ Kiro マスター 05
inariku
PRO
3
220
動画プレイヤーはなぜカクつくのか 〜Flutterのレンダリングとネイティブの境界を解剖する〜
naruogram
0
340
クラウドエージェントは、 何がそんなに便利なのか / what makes cloud agents so useful
rkaga
5
980
Scalaの型でマルチテナントの認可を守る
nextbeatdev
0
180
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
130
Kotlin Fest 2026: Kotlin コンパイラに Contribute してみよう! - Kotlin/Wasm で深い再帰を書けるようにした話
ternbusty
1
420
Featured
See All Featured
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
390
Color Theory Basics | Prateek | Gurzu
gurzu
1
530
HDC tutorial
michielstock
2
1k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
1.1k
SEO for Brand Visibility & Recognition
aleyda
0
4.9k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.6k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
23k
KATA
mclloyd
PRO
35
16k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
480
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
310
Mobile First: as difficult as doing things right
swwweet
225
10k