I want to use the Oauth for calling the etsy API but I dont have the permission to install php oauth PECL extentsion on the server. So I heard about the ZEND oauth library. Can I use ZEND Oauth library without using the ZENd framework as I have heard that ZEND libraries are loosley coupled and can be used independant of framewrok ? If I can do it. What libraries do I have to include in my project
2 に答える
1
Zend Framework でライブラリを使用する方法について、ナレッジ ベースに一度ドキュメントを書きました。下部のリンクを参照してください。
簡単に言えば、ライブラリのベース パスを php インクルード パスに指定する必要があります。ここで重要なことは、Zend ディレクトリ自体ではなく、ライブラリのパスを指定することです。Zend Framework 1.x のすべてのファイルには、このライブラリ パスと Zend フォルダーに関連する require_once があります。(これは ZF2 では異なり、オートロードに依存することに注意してください)。環境でそれを取得したら、ライブラリ内のすべてのクラスにアクセスして操作できるようになります。
// define an absolute path to library directory
// Note again: the path is the parent of your Zend folder, not the Zend folder itself.
define('APPLICATION_LIBRARY','path/to/your/library'));
// now set the include path
set_include_path(implode(PATH_SEPARATOR, array(
APPLICATION_LIBRARY, get_include_path(),
)));
于 2012-07-27T16:39:47.637 に答える
0
もちろんできます。いつものように Zend Framework をインストールし、必要なものだけを使用してください。
于 2012-07-27T08:58:21.700 に答える