PEAR
なんか、世の中にあるWebサービスがどんどん揃っていきますね。。。> PEAR まだ0.2.0αですが試してみました。ざっと次のような感じで書けますね。 validateFile('example.html'); // URLから検証 //$ret = $validator->validate('http://www.…
ついでに、サマータイムの例です。ちゃんと考慮された結果が返ってきますね。 getDate()); var_dump($now2->getDate()); /** * タイムゾーンを'Canada/Pacific'…
ありがちな日付クラスですが、基本となるクラスだけあって、結構使えます。PHP4.3以降で利用可能です。 たとえばタイムゾーンの変更は、以下のような感じに書けます。便利〜! getDate()); /** * タイムゾーンを'Canada/Pacific'に変更 */ $now->convertTZ(n…
PHPでCAPTCHAといえばPEAR::Text_CAPTCHAですが、最近見かけるようになった「簡単な計算をさせるCAPTCHA」を実現するパッケージです。 Generation of numeral maths captchas$PEAR_DIR/doc/Text_CAPTCHA_Numeral/examplesディレクトリにあるliveNumeral.php…
php.iniのoutput_handlerを確認し、何らか設定されている場合、たとえば、 output_handler = mb_output_handlerの場合、コメントアウトしてから再度go-pear.batを実行してみると良いかも。PHP5.2.0 for Win32で確認。 ;output_handler = mb_output_handler早…
Windows XP(SP2)にPHP5.2.0をインストールし、go-pear.batを実行したところ、 Warning: Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/...が頻発してインストール失敗。調べてみると、 I think that in general a formal bug report…
なかなか触れずにいたんですが、ちょっとだけ時間ができたので使ってみました。 インストールと動作確認 # pear install -a codegen_pecl # pecl-gen Usage: pecl-gen [-h] [--force] [--experimental] [--version] [--extname=name] [--proto=file] [--skel…
言わずと知れたPHPドキュメント生成ツールです。バグFIXリリースです。 Changelog: - fixed these bugs reported at sourceforge [ 1544977 ] Command line arguments split by spaces (fix included) [ 1545927 ] HTMLSmartyConverter logo not in package …
何てことないんですが、awstatsの集計結果ファイルから検索文字列(キーワード)を抜き出して、cloud形式に表示するスクリプトを書いてみました。 。。。と理由は付けてますが、まあ、HTML_TagCloud使いたかっただけです ;-) 結果はDo You PHP?のEXPERIENCE…
まだα版ですが。。。 ;-) PHP Client for YouTube APIYouTubeで提供されている7つのAPIをサポートしているようですね。PEARマニュアルにあるサンプルをざっと試してみました。Example 60-4のようなタグでの検索は、何らかのサービスに使えるかも。。。 true…
XdebugのRCリリースに伴い、PHPUnit3.0も初めてのβ版がリリースされています。 Now that Derick has released the first release candidate of Xdebug 2 it is time for me to release a first beta version of PHPUnit 3.0.特徴としては以下のものが挙げら…
PHP_CodeSniffer is a PHP5 script that tokenises and "sniffs" PHP code to detect violations of a defined set of coding standards. It is an essential development tool that ensures that your code remains clean and consistent. It can even help…
This release is a beta release in preparation for the upcoming stable release of version 1.0.0.11ヶ月ぶりのアップデート・・・止まってましたね〜。それだけ「枯れてる」ということでしょうか。 1.0.0は出るんでしょうか?
Summary PDF generation using only PHP.PHPだけで作るとは(ある意味)男前なライブラリ〜! 試してませんが、使い勝手とかパフォーマンスとか気になるところです。
もはやデファクトとなったPHPドキュメント生成ツールです。最初のRCから約2年半、ようやく1.3.0正式版がリリースです。 Features added to this release include: Full PHP 5 support, phpDocumentor both runs in and parses Zend Engine 2 language constr…
この前1.0.1がリリースされたのに。。。Changes since 1.0.2: fixed CodeGen dependency entry disabled #line output by default
9月になったら試せるかなぁ。。。Changes since 1.0.0: now using codegen helper object for indent and code blocks updated the DTD added DOCTYPE specs to all examples package.xml 1.0 OS dependencies generation fixed some config.m4 generation s…
前にも別のプログレスバーを紹介しましたが、今度はPEARものです。 ユーザー向けドキュメントを実際に試してみました(PHP5.1.4)が、色々と高機能のようです。 また、XHTML形式で出力されるのが良いですね。
前のエントリは書籍自体が2003年のものなので、ちょっと古めです。 現在は、ext_skelの代わりにPEAR::CodeGen_PECLを使うことができます。いずれにしても、PHPモジュールの内部をもうちょっと知りたいので、Building Custom PHP Extensionsを「地雷を踏みつ…
5ヶ月ぶりのリリースです。RC6からPHP5に完全対応したようです。 PHPにおけるAPIドキュメント作成ツールは、これでほぼ決まりですね。
File System系のパッケージです。新しいのかと思ったんですが、ver.0.0.3βが2003-07-03だそうです。。。 This package provides a Virtual File System API, with backends for: * SQL * FTP * Local filesystems * Hybrid SQL and filesystem * Samba * SSH…
Changelog:Added ordered Queue Support and the slow_livesearch example to show it off Added setInnerHTML method to HTML_AJAX_Util (Bug #6672) Added getElementsByCssSelector, hasClass, addClass, removeClass, replaceClass, getElement methods …
Growl is a MACOSX application that listen to notifications sent by applications and displays them on the desktop using different display styles. Net_Growl offers the possibility to send notifications to Growl from your PHP application thro…
一瞬、NeoGeoかと思いましたが。。。;-) IPアドレスから地理情報を取得するパッケージです。PEARマニュアルにあるサンプルを実行してみたところ、国・都市名の他、緯度・経度も取得できました。ただし、米国内だけ(?)有効のようです。 Google Mapsと組合…
先日チェックを入れたService_hatenaですが、ver.0.1.0(α版)としてPEARに登録されました。
新版がリリースされたConsole_Tableを使ってみました。 setHeaders(array('ID', 'Name', 'e-mail')); $table->addRow(array('1', 'taro', 'taro@some.domain.jp')); $table->addRow(array('2', 'hoge', 'hoge@some.domain.jp')); $table->addRow(array('3', …
既存のPHPに対して上書きインストールの場合は問題になりませんが、新規インストールの場合は結構問題です。リリースされて2ヶ月経ちますが、まだ放置プレーですね。4.4.3では直ってそうですが。 make installすると、 # make install : Installing PEAR en…
Wiki形式のテキストをXHTML, RTF, LaTeX等に変換するparser & renderer。DocBookにも変換できるようなので、会社でも結構使い道あるかも知れないな。
トラックバックの送受信が可能のようだ。
ほほう。。。なかなかヨサゲ。 でも、PHPでの実行速度ってどんなんだろ?ちょっと気になる。