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
75
Compression Streams API によるブラウザネイティブなデータ圧縮 /phpstudy-182
sizuhiko
0
81
Code兄弟での CI/CDをいい感じにする方法 / phpstudy-2024-06
sizuhiko
0
230
Webアクセシビリティワークショップを社内でやってみた / phpconfuk-2024
sizuhiko
1
430
デベロッパーよ 健康でいるためには 寝て 旅をして 趣味を持って メンタル大切に / 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
260
@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
tamachi.goを支える技術
rymiyamoto
0
110
カーネルまで探検して理解するふたつの自動計装
sumiyae
0
340
サイボウズ 開発本部採用ピッチ / Cybozu Engineer Recruit
cybozuinsideout
PRO
12
86k
指示待ちから変化に応じるClaude Codeへ!~環境からAgentへの帰り道を作る~
gotalab555
8
1.5k
Data Hubグループ 紹介資料
sansan33
PRO
0
3.2k
EUDIWの枠組みを出発点に民間エコシステムの在り方を考える(OAuth/OIDC Numa (Immersion) Workshop 2026)
oidfj
PRO
0
340
Kiro5兄弟のいまどきのセキュリティ基礎知識
kentapapa
0
380
AI駆動開発をチームに根付かせる - 「1行も書かない」チームがHarnessを育てた1年 -
kenichirokimura
6
3.3k
Kiro Crew で始める マルチエージェント開発
miu_crescent
PRO
0
200
PdMをやめて、 "プロダクトビルダー"という 働き方に変えました / PdM to Product Builder
shikichee
0
120
AIレビュー時代に必要なのは、SLOで引く撤退ライン
nobuoooo
0
150
AI駆動開発はどこまで来たのか? ファインディの最新実態調査で読み解く現在地 Devin Con Tokyo
akiratom
4
1.9k
Featured
See All Featured
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
360
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Making the Leap to Tech Lead
cromwellryan
135
10k
Ruling the World: When Life Gets Gamed
codingconduct
0
310
Prompt Engineering for Job Search
mfonobong
0
420
Leo the Paperboy
mayatellez
8
2.2k
Tell your own story through comics
letsgokoyo
1
1k
Exploring anti-patterns in Rails
aemeredith
3
480
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
Raft: Consensus for Rubyists
vanstee
141
7.7k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
310
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
290
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