久しぶりにPHPのエクステンションで書かれた超高速フレームワークPhalconを見たら 公式ページが見やすくなってた バージョンが1.0.0になってた annotationリーダーのライブラリができてた(そしてPhlconで使える) Microというクラスがあり、マイクロフレームワー... 続きを読む
すぐれた PHP のライブラリとリソース Awesome PHP の記事をフォークして翻訳したものです (2013年4月25日)。おどろくほどすごい PHP ライブラリ、リソースやちょっとした情報のリストです。 Composer Composer/Packagist - パッケージと依存マネージャー Compo... 続きを読む
I challenge myself to find ways to generate more feedback during coding. An unusual use of tests for feedback came up the other day during a coaching session. I don't think I've seen it discussed, so I'll describe it here. The scenario is t... 続きを読む
Statistics Favorites 1 Downloads 0 Comments 0 Embed Views 0 Views on SlideShare 0 Total Views 0 オレオレPHPのつくり方 Presentation Transcript オレオレPPHHPPの つくりかた @@rrsskkyy 22001133..0033..0022 第44回闇PPHHPP勉強会 自己紹介関山 隆介 (... 続きを読む
クライアント基盤チームのよやです。こんにちは。 需要の少ない話で恐縮ですが、今回は Windows 版 PHP を自分で build する方法を解説します。 Unix 系OS で PHP 自体を改造したり、PHP extention を作って組み込む事に慣れていても、Windows では足踏みする事... 続きを読む
(PHP Advent Calendar 25日目参加エントリです。前の日は @mugeso さんによる「PHPerのMVCの一体どこが間違っていたのか」でした。) 年末三日間の聖戦に向けて聖夜は休息にあてているみなさん、こんにちは。 今日は、ジェネレータをより有効に使うべく、foreach... 続きを読む
PHP 5.3.4(最新は PHP 5.3.5) で、引数の値にファイルパスが指定可能な言語構造と関数でに NULL バイトが含まれていた場合、処理が失敗するように修正されました。http://svn.php.net/viewvc?view=revision&revision=305507簡単に調べてみたところ、少なくとも... 続きを読む
php-memcached-dev/php-memcachedをforkしたmsgpack-and-snappyブランチで、シリアライズ方式にMessagePackを、圧縮方式にSnappyを選べるようにした。 MessagePackを使うにはPECL msgpackをインストールした上で、configureのオプションに --enable-memcached-m... 続きを読む
0 views PHP5.5の新機能「ジェネレータ(Generator)」について、「それって何?」「どううれしいの?」「何に使えるの?」の3つを初心者向けに解説。 More… PHP5.5の新機能「ジェネレータ(Generator)」について、「それって何?」「どううれしいの?」「何に使... 続きを読む
PHP 5.5 でジェネレータが導入されることになりました。 PHP においてジェネレータは Iterator インターフェイスを実装するクラスで次のメソッドが定義されています。 final class Generator implements Iterator { void rewind(); bool valid(); mixed current... 続きを読む
Gonzalo Ayuso is a Web Architect with more than 10 year of experience in the web development, specialized in Open Source technologies. Experienced delivering scalable, secure and high performing web solutions to large scale enterprise clients... 続きを読む
An easy-to-read, quick reference for PHP best practices, accepted coding standards, and links to authoritative PHP tutorials around the WebPHP The Right Way. Tweet ようこそ 時代遅れの情報がウェブ上にあふれている。そんな情報を見たPHP初心者は戸... 続きを読む
PHP 5.4 was released just four months ago, so it probably is a bit too early to look at the next PHP version. Still I’d like to give all the people who aren’t following the internals mailing list a small sneak peak at what PHP 5.5 might loo... 続きを読む
Rants about PHP are everywhere, and they even come from smart guys. When Jeff Atwood wrote yet another rant about PHP, it made me think about the good parts of PHP. The biggest problem of these rants is that they come from people stuck in the... 続きを読む
I wrote Tumblr, Instapaper, and Second Crack in PHP. I continue to use it because I know it extremely well, it’s very easy to use and deploy, and it’s nearly maintenance-free on servers. When you’re a programmer forced to also be your own ... 続きを読む
Generators provide an easy, boilerplate-free way of implementing iterators. As an example, consider how you would implement the file() function in userland code: function getLinesFromFile($fileName) { if (!$fileHandle = fopen($fileName, 'r'))... 続きを読む
去る25日の金曜日に第59回PHP勉強会@東京で発表してきました。以下が発表資料(少し修正しました)です。 発表資料:「PHPのマルチバイト処理 ― 分類と落とし穴」(slideshare版)(PDF版) 久々のPHP勉強会だったので張り切って発表しに行ったのですが、他の人も... 続きを読む
PHPさて問題です。次のコードの実行結果はどうなるでしょうか? var_dump(preg_match('/\w/u', 'あ')); var_dump(preg_match('/\w/u', ' ')); // 全角スペース var_dump(preg_match('/\w/u', '1')); // 全角の1 var_dump(preg_match('/\d/u', '1')); // 全角... 続きを読む
React is a platform built on PHP for easily building fast, scalable network applications. React uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run a... 続きを読む