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
PHPSagami2
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
yoya
November 10, 2015
Programming
0
99
PHPSagami2
PHP勉強会@相模原#2 のオープニング
yoya
November 10, 2015
Tweet
Share
More Decks by yoya
See All by yoya
resize_nitpick
yoya
1
160
ImageFluxBinary
yoya
2
2.9k
HEIF-kaisetsu
yoya
4
3.5k
go-thumber-imagick
yoya
1
190
chokaizomae
yoya
2
600
wildimagebinary
yoya
1
230
goimagicksyokai
yoya
2
1.1k
GoImagickThumbnail
yoya
0
1.7k
sushigazou
yoya
0
12k
Other Decks in Programming
See All in Programming
TipKitTips
ktcryomm
0
170
「やめとこ」がなくなった — 1月にZennを始めて22本書いた AI共創開発のリアル
atani14
0
390
Goの型安全性で実現する複数プロダクトの権限管理
ishikawa_pro
2
340
GC言語のWasm化とComponent Modelサポートの実践と課題 - Scalaの場合
tanishiking
0
110
go directiveを最新にしすぎないで欲しい話──あるいは、Go 1.26からgo mod initで作られるgo directiveの値が変わる話 / Go 1.26 リリースパーティ
arthur1
2
550
CSC307 Lecture 15
javiergs
PRO
0
250
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
500
メタプログラミングで実現する「コードを仕様にする」仕組み/nikkei-tech-talk43
nikkei_engineer_recruiting
0
190
PostgreSQL を使った快適な go test 環境を求めて
otakakot
0
550
野球解説AI Agentを開発してみた - 2026/02/27 LayerX社内LT会資料
shinyorke
PRO
0
300
CS教育のDX AIによる育成の効率化
niftycorp
PRO
0
120
最初からAWS CDKで技術検証してもいいんじゃない?
akihisaikeda
4
150
Featured
See All Featured
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
970
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
200
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
290
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
140
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
62
52k
The Cult of Friendly URLs
andyhume
79
6.8k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
770
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
0
240
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
110
Making Projects Easy
brettharned
120
6.6k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
320
Transcript
PHP 勉強会@相模原#2 2015年11月10日(火) “よや”
[email protected]
会場について • 相模大野駅の横、ボーノのサウスモール3階 • 途中入場 途中退室
いつでも OKです。
PHP勉強会@相模原とは • PHP の知見を話し合う場を相模原に作りたい • 第一回 2004年1月22日(水) – h:ps://atnd.org/events/46944
(18名) • PHP勉強会@東京の真似ごとです – h:ps://phpstudy.doorkeeper.jp/
元祖(?) PHP 勉強会 • 元祖PHP勉強会 – PHP勉強会@東京 • ほぼ毎月開催、最近は渋谷のGMO会場
• h:ps://phpstudy.doorkeeper.jp/ • h:ps://www.facebook.com/pstudy.tokyo • 第一回は 2005年6月15日 – ちなみに PHP5 が2004年公開 – 当時はまだ PHP4 が主流(PHP3 使ってるとこも)
独断と偏見で選ぶ PHP勉強会でよく見るトピック • PHPバージョン • PHP標準機能 •
PHPプロファイラ • PHPフレームワーク (これが一番多い印象) • PHPパッケージング • PHP開発環境
PHP バージョン • レガシー (もう話にも出ないかも。。) – PHP5.2, 5.3, HipHop
• 現行 – PHP5.4 • 先進的 – PHP5.5, 5.6, HHVM • 次世代 – PHP7 (PHPNG)
PHP 標準機能 • Array (配列) – 順序付き連想配列 • String
(文字列操作) – PCRE (正規表現) – MB (マルチバイト文字、主に日本語) • Date (日付処理) • Cookie (クッキー処理) • GD (グラフィック)
PHP プロファイラ • Xdebug (昔からある) • XHprof •
Uprofiler (PHP5.5 ではコレが良いらしい) • 視覚化ツール重要 – Webgrind, Kcachegrind => Xdebug – XHGui > XHprof, Uprofiler
PHP フレームワーク • CakePHP • Laravel |
Lumen • CodeIgniter | FuelPHP • ZendFramework • Slim • BEAR.Sunday • Ethna (昔お世話になったので一応リスト)
PHPパッケージング • PEAR (昔はこれ) – /usr/share/pear 等の共通フォルダに展開 => 共通なので同じホスト上の色んなツールに影響
– 普通に使いたいファイルを require_once する • Composer (今時はこれ) – 依存するファイルをカレントの vendor に展開 ⇒ 共通でないのでツール事にアップデート ⇒ require_once ‘vendor/autoload.php’ 決め打ち
PHP 開発環境 • エディタ: PHPStorm, IntelliJ, Eclipse • レポジトリ:
Github, BitBucket, Gitlab • 継続的インテグレーション(CI): Jenkins • VM環境構築: Vagrant(VirtualBox) • プロビジョニング: Ansible, Chef
なぜ発表するのか • これらトピックに出てくるツールは – 実際に使うとハマりどころがあったり – バージョンによって問題があったり – そもそも使い方が分かりにくかったり
– 新しいツールが出てきたら使ってみたい • 実際に試して気づいた知見の共有は助かる
自己紹介タイム • PHP の何に興味あるとか、PHP何も知らない ので勉強しに来たとか。 – 僕はよく後者を使う • とりあえず主催者から紹介
• よろしくお願いします。