Created
November 12, 2009 08:44
-
-
Save yabeken/232740 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once(dirname(__FILE__)."/__settings__.php"); | |
import("org.yabeken.pear.Pea"); | |
//PEARライブラリのインストールと読み込み | |
//バージョン指定(推奨) | |
pear("pear.php.net/HTTP_OAuth-0.1.4"); | |
//最新版(デフォルトはstableパッケージ) | |
//pear("pear.php.net/HTTP_OAuth"); | |
//ステータス指定(指定以上の最新版) | |
//pear("pear.php.net/HTTP_OAuth-alpha"); | |
//pear.php.net は省略可能(非推奨) | |
pear("DB"); | |
//PEAR命名規則に反しているライブラリはインストールだけ行い自分で読み込む | |
pear_install("openpear.org/Wozozo_Unko"); | |
require_once("Wozozo.php"); | |
//依存関係まとめてインストールしたい際 | |
Pea::config_dependency(true); | |
//オプションライブラリも入れる際 | |
Pea::config_optional(true); | |
//インストールポリシーの設定 | |
//alpha以上の最新を入れる. | |
Pea::config_preffered_state(Pea::STATE_ALPHA); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment