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
CakePHPアプリケーションの作り方 〜これまでと、これから
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Kenichiro Kishida
June 17, 2015
Technology
830
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
CakePHPアプリケーションの作り方 〜これまでと、これから
PHP Framework 最新バージョン使ってみた LT 発表資料
http://connpass.com/event/16016/
Kenichiro Kishida
June 17, 2015
More Decks by Kenichiro Kishida
See All by Kenichiro Kishida
Compression Streams API によるブラウザネイティブなデータ圧縮/jsfes2025
sizuhiko
0
70
Compression Streams API によるブラウザネイティブなデータ圧縮 /phpstudy-182
sizuhiko
0
80
Code兄弟での CI/CDをいい感じにする方法 / phpstudy-2024-06
sizuhiko
0
230
Webアクセシビリティワークショップを社内でやってみた / phpconfuk-2024
sizuhiko
1
420
デベロッパーよ 健康でいるためには 寝て 旅をして 趣味を持って メンタル大切に / DE-RADIO-2023-06-26
sizuhiko
0
210
ヘビータブユーザーが ワークスペースの利用でどのように変わったか / 2023-05-16 Vivaldi User Meetup TOKYO 2023
sizuhiko
0
380
Node.js v18 ベースイメージを使った AWS Lambda アプリ開発におけつ光と影 / 2023-04-23 JavaScript Fes
sizuhiko
0
250
@swc-node/jest を使って テストを高速化する/jsfes-2022
sizuhiko
0
430
Rails 7の採用提案で注目を集め始めた Import maps の過去、現在、そして未来について/de radio 2
sizuhiko
2
1.5k
Other Decks in Technology
See All in Technology
ガバメントクラウドでのランサムウェア対策
techniczna
2
1k
Service Connect 上のサービスに ECS Service の外側から到達できなかった話
ota1022
1
180
AI駆動開発は個人技からチーム戦へ:組織でAIを使いこなすための実践設計
moongift
PRO
0
480
関東Kaggler会発表資料
takoi
1
200
サイバー捜査員研修(後半)
nomizone
1
810
【CEDEC2026】グラフィックスエンジニアのためのニューラルシェーディング入門
cygames
PRO
0
130
侵入は突然に 〜 IoTマルウェアと悪用される家庭の機器 ~ / When Intrusion Strikes: IoT Malware and the Abuse of Home Devices
nttcom
0
1.6k
Bill One 開発エンジニア 紹介資料
sansan33
PRO
7
19k
『三匹の子ぶた』から学ぶネットワークセキュリティの昔と今 / Network Security: Then and Now Through the Lens of The Three Little Pigs
nttcom
1
1.8k
モダンフロントエンド 開発研修
recruitengineers
PRO
4
560
toio・myCobotでフィジカルAIっぽいことを行うための検討(とりあえず調査) / フィジカルAI LT(IoTLTによる開催)
you
PRO
0
300
サイバー捜査員研修(前半)
nomizone
1
1.9k
Featured
See All Featured
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.7k
How to train your dragon (web standard)
notwaldorf
97
6.7k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.8k
YesSQL, Process and Tooling at Scale
rocio
174
15k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Designing for humans not robots
tammielis
254
26k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.2k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
11k
Bash Introduction
62gerente
615
220k
Transcript
$BLF1)1ΞϓϦέ ʔγϣϯͷ࡞Γํ ͜Ε·Ͱͱɺ͜Ε͔Β 1)1'SBNFXPSL࠷৽όʔδϣϯͬͯΈͨ-5CZ!TJ[VIJLP
,FOJDIJSP,JTIJEB 5PLZP +"1"/ TJ[VIJLP!HNBJMDPN !TJ[VIJLP IUUQTHJUIVCDPNTJ[VIJLP IUUQCMPHPQFOUPLZPKQ +1POMZ
.BZ
None
2 0DU
͜Ε·Ͱ • XAMPPMAMPPɺvagrant • μϯϩʔυͯ͠Πϯετʔϧ ComposerΛ͏ʹΧελϚΠζ͕ඞཁ • BakeͰܗΛੜ • Console/cake͔ΒCLIΛ࣮ߦ
• ComposerͰґଘؔΛղܾ • ϓϥάΠϯҎ֎ͷύοέʔδ͕͍͍
$BLF1)1 CakePHP2 App Cake CLI CakePHP2 Core Vendor Package Web
Server CakePHP2 Plugin
.BS
$BLF1)1 CakePHP3 App PHP CLI CakePHP3 Core Vendor Package Web
Server CakePHP3 Plugin
͜Ε͔Β • CakeboxͰָʑڥߏங • migrationͱDebugKit͕ॳظಋೖ • BakeͰܗΛੜ • Composerͷར༻͕ඞਢ •
PSR-4ରԠͰͲ͔͜ΒͰCakePHPΛ ݺͼग़͠Մೳʹ
ڥߏங https://github.com/alt3/cakebox
# ڥߏங git clone https://github.com/alt3/cakebox.git cd cakebox cp Cakebox.yaml.default Cakebox.yaml
vagrant up # ৽نΞϓϦέʔγϣϯੜ vagrant ssh cakebox application add ΞϓϦ໊ # طଘΞϓϦέʔγϣϯΠϯετʔϧ cakebox application add ΞϓϦ໊ \ --source https://github.com/hoge.git \ --webroot /var/www/application/hoge http://blog.open.tokyo.jp/2015/04/19/cakebox-is-awesome.html
None
None
None
None
# ςετ࣮ߦ phpunit # Behat࣮ߦ vendor/bin/behat
{ "name": "cakephp/app", "type": "project", "license": "MIT", "require": { "php":
">=5.4.16", "cakephp/cakephp": "3.0.*-dev", "mobiledetect/mobiledetectlib": "2.*", "cakephp/migrations": "dev-master", "cakephp/plugin-installer": "*" }, "require-dev": { "d11wtq/boris": "1.0.*", "cakephp/debug_kit": "3.0.*-dev", "cakephp/bake": "dev-master" }, "suggest": { "phpunit/phpunit": "Allows automated tests to be run without system-wide install.", "cakephp/cakephp-codesniffer": "Allows to check the code against the coding standards used in CakePHP." }, "autoload": { "psr-4": { "App\\": "src" } }, "autoload-dev": { "psr-4": { "App\\Test\\": "tests", "Cake\\Test\\": "./vendor/cakephp/cakephp/tests" } }, "scripts": { "post-install-cmd": "App\\Console\\Installer::postInstall", "post-autoload-dump": "Cake\\Composer\\Installer\\PluginInstaller::postAutoloadDump" }, "minimum-stability": "dev", "prefer-stable": true }
"require": { "php": ">=5.4.16", "cakephp/cakephp": "~3.0", "mobiledetect/mobiledetectlib": "2.*", "cakephp/migrations": "~1.0",
"cakephp/plugin-installer": "*" }, "require-dev": { "psy/psysh": "@stable", "cakephp/debug_kit": "~3.0", "cakephp/bake": "~1.0" },
"autoload": { "psr-4": { "App\\": "src" } }, "autoload-dev": {
"psr-4": { "App\\Test\\": "tests", "Cake\\Test\\": "./vendor/cakephp/ cakephp/tests" } },
03.
XxTable CakePHP3 Core XxEntity App Iterator array $BLFͱͷޓੑ
ΧελϜϑΝΠϯμʔ • find(“groupByUserId”) • findGroupByUserId() ͱ͍͏ϝιου ΛXxxTableΫϥεʹ࣮͢Δ • find(“age”, [30,
40])- >find(“groupByUserId”) ͷΑ͏ʹϝι ουνΣΠϯՄೳ
·ͩෆ҆ͩ
$BLF1)1&OUJUZ 1MVHJO https://github.com/josegonzalez/cakephp-entity
$BLF1)1&OUJUZ • CakePHP2ͰCakePHP3෩ʹTableͱ EntityΛ͑Δ • কདྷతͳCakePHP3ͷҠߦΛ༰қʹ • ΧελϜϑΝΠϯμʔͳͲͷػೳͳ ͍
Mark Story - CakePHP 3.0.0 and beyond (Conference) Slides: http://www.slideshare.net/markstory/cakephp-30-and-beyond
WJTJUNZCMPHHJUIVC https://github.com/sizuhiko 5IBOLZPV http://blog.open.tokyo.jp