CakePHP3入門資料を公開
※ 株式会社GIGでは毎月社内勉強会を実施しています
GIG inc.
Good is good.
We provide opportunities to the SEKAI by fusing technology and ideas.
テクノロジーとクリエイティブでセカイをより良くする。小さなチームからスタートした多くの先人達が、世界をより豊かなモノに変革してきました。通信、UX、デバイス、技術の変化と共に世界はまだまだ加速度的に変わります。
Good is good. いいものはいい。GIGは、関わったユーザーやクライアントが前に進める“きっかけ”をつくりつづけます。
■ お問い合せ
https://giginc.co.jp/contact/
The document discusses a PHP implementation of a Game Boy emulator that runs in the terminal. It explains how the emulator works, including how it simulates the Game Boy's CPU, memory, display, sound, buttons and communication port in PHP code. It provides code examples for emulating the CPU instructions and reading button input from the keyboard.
CakePHP3入門資料を公開
※ 株式会社GIGでは毎月社内勉強会を実施しています
GIG inc.
Good is good.
We provide opportunities to the SEKAI by fusing technology and ideas.
テクノロジーとクリエイティブでセカイをより良くする。小さなチームからスタートした多くの先人達が、世界をより豊かなモノに変革してきました。通信、UX、デバイス、技術の変化と共に世界はまだまだ加速度的に変わります。
Good is good. いいものはいい。GIGは、関わったユーザーやクライアントが前に進める“きっかけ”をつくりつづけます。
■ お問い合せ
https://giginc.co.jp/contact/
The document discusses a PHP implementation of a Game Boy emulator that runs in the terminal. It explains how the emulator works, including how it simulates the Game Boy's CPU, memory, display, sound, buttons and communication port in PHP code. It provides code examples for emulating the CPU instructions and reading button input from the keyboard.
45. CakePHP3 - セットアップ
# composer create-project --prefer-dist cakephp/app cake3
Installing cakephp/app (3.0.3)
- Installing cakephp/app (3.0.3)
Loading from cache
Created project in cake3
Loading composer repositories with package information
Installing dependencies (including require-dev)
- Installing aura/installer-default (1.0.0)
Loading from cache
- Installing cakephp/plugin-installer (0.0.12)
Loading from cache
Writing lock file
Generating autoload files
Created `config/app.php` file
Set Folder Permissions ? (Default to Y) [Y,n]?
Permissions set on /var/www/cake3/tmp/cache
Permissions set on /var/www/cake3/tmp
Permissions set on /var/www/cake3/logs
Updated Security.salt value in config/app.php
46. CakePHP3 - セットアップ
# composer create-project --prefer-dist cakephp/app cake3
Installing cakephp/app (3.0.3)
- Installing cakephp/app (3.0.3)
Loading from cache
Created project in cake3
Loading composer repositories with package information
Installing dependencies (including require-dev)
- Installing aura/installer-default (1.0.0)
Loading from cache
- Installing cakephp/plugin-installer (0.0.12)
Loading from cache
Writing lock file
Generating autoload files
Created `config/app.php` file
Set Folder Permissions ? (Default to Y) [Y,n]?
Permissions set on /var/www/cake3/tmp/cache
Permissions set on /var/www/cake3/tmp
Permissions set on /var/www/cake3/logs
Updated Security.salt value in config/app.php
CakePHP3のプロジェクトテンプレートを
ダウンロードしてcomposer installする。
48. CakePHP3 - bake
# bin/cake bake
Welcome to CakePHP v3.0.7 Console
---------------------------------------------------------------
App : src
Path: /var/www/cake3/src/
---------------------------------------------------------------
The following commands can be used to generate skeleton code for your application.
Available bake commands:
- all
- behavior
- cell
- component
- controller
- fixture
- form
- helper
- migration
- migration_snapshot
- model
- plugin
- shell
- template
- test
By using `cake bake [name]` you can invoke a specific bake task.
いろいろ作れる。
うまく使うと便利。
54. PSR-2
• CakePHP3はPSR-2準拠。
• This guide extends and expands on PSR-1, the basic coding
standard.
http://www.slideshare.net/yandod/psrphp新標準PSRに学ぶきれいなPHP
55. PSR-2
• CakePHP3はPSR-2準拠。
• This guide extends and expands on PSR-1, the basic coding
standard.
http://www.slideshare.net/yandod/psrphp新標準PSRに学ぶきれいなPHP
56. PSR-2
個人的にちょっとキモい…
• CakePHP3はPSR-2準拠。
• This guide extends and expands on PSR-1, the basic coding
standard.
http://www.slideshare.net/yandod/psrphp新標準PSRに学ぶきれいなPHP
57. PSR-2
すぐ慣れた
• CakePHP3はPSR-2準拠。
• This guide extends and expands on PSR-1, the basic coding
standard.
http://www.slideshare.net/yandod/psrphp新標準PSRに学ぶきれいなPHP