Skip to content

Instantly share code, notes, and snippets.

@yabeken
Created November 12, 2009 08:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yabeken/232740 to your computer and use it in GitHub Desktop.
Save yabeken/232740 to your computer and use it in GitHub Desktop.
<?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