2011年10月19日水曜日

cakePHP2.0.0リリース、新機能をまとめてみた!

2011/10/16にPHPのWebアプリケーションの開発フレームワークcakePHPの2.0.0がリリースされましたね!
cakePHPと言えば、RubyOnRailsを模して造られた(と言われる)MVCフレームワーク。
以下リリースノートから(勝手)翻訳した新機能 。

・We have dropped PHP 4 support and we have refactored all the code to be strictly compliant with PHP 5.2+.
PHP4のサポートはやめて、PHP5.2以上にりファクタリングし直したよ。
・Use of native features like exceptions, PDO, SPL, json_encode and much more.
そのため、PDO(PHP Data Object)やSPL(Standard PHP Library),JSON_ENCODEなどが利用できるようになった。
・Embraced the PSR-0 recommendation for file naming. Now all your classes map to a file with the same name. Less things to remember!
ファイルの命名規則をPSR-0の命名規則に則ったんだ、それにより同じ名前でファイルにマッピングされるよ。
・New Error and Exception handlers provide easier to configure, and ease working with errors such as page not found, unauthorized error and lots more.
エラーや例外ハンドラがより設定しやすくなったよ。
・Improved I18n functions for easier multilingual development.
カンタンに多言語化がしやすくなった。
・Support for injecting your own objects to act as CakePHP libraries, such as component, helpers and behaviors, no more excuses for modifying core files.
cakePHPをイイ感じで動かせるように、独自のオブジェクトを追加できるようになったよ。
・Console libraries rebuilt from scratch, automatic help generation, parameter checking, and colors!
コンソールライブラリも再構築され、自動的にヘルプを生成したり、パラメータチェックやカラー表示などに対応したよ。
・New Request and Response objects for easier handling of HTTP requests.
HTTPリクエストのための新しいリクエストやレスポンスの機能を!
・Better session handling for easier custom engines. Put your sessions into storage systems like Memcache with less effort.
よりよいセッション機能を提供!
・Completely refactored Auth system. It is now easier to configure and plug in your own implementations for external login services or your permissions system.
認証システムを一新!外部連携などを容易におこなえるように。
・Brand new email library with support for multiple transports. With easy to use global configuration, logging, and charset support.
メール送信ライブラリも一新、文字セットやログ、設定などがより楽になったんだ。
・Dropped SimpleUnit in favor of PHPUnit. PHPUnit is the defacto testing framework for PHP with support for more options, better mock objects, and improved console output [16]
テストはSimpleUnitからPHPUnitを採用したよ。
・Reworked the SecurityComponent to not suck less, now you can more easily protect your apps against CSRF and form tampering attacks while having fun.
セキュリティコンポーネントを作り直した。これにより、これまで以上に意識することなくCSRF「Cross Site Request Forgeries(クロスサイトリクエストフォージェリ)」対策が出来る。
#Webサイトにスクリプトや自動転送(HTTPリダイレクト)を仕込むことによって、閲覧者に意図せず別のWebサイト上で何らかの操作(掲示板への書き込みなど)を行わせる攻撃手法。 
・ Improved support for PostgreSql, SQLite and SqlServer, they are now first class citizens along with Mysql datasource.
PostgreSQL、SQLite、Microsoft SQL Serverのサポートが強化され、MySQLとおんなじように利用できるようになった。
・HTML 5 form inputs support in form helper.
フォームヘルパーで、HTML5のフォームをサポート!
・A Sexier default look taking advantage of new CSS 3 features.
CSS3の機能も利用できる!
・A lot faster, almost everything is now lazy-loaded, and even on debug mode you will feel your applications flying.
これまで遅いと感じていたアプリケーションは飛ぶように高速で動作するだろう!

結構適当訳ですが・・・。
かなり高速化と効率化を図れているようですね!期待しちゃいます。・・・すぐに2.0系を利用したアプリケーションの引き合いはないけど・・。

1.2系→2.0系に作り直したいなぁ。

■cakePHP2.0リリースノート
http://bakery.cakephp.org/articles/lorenzo/2011/10/16/cakephp_2_0_released

■cakePHP
http://www.cakephp.jp/

0 件のコメント:

コメントを投稿