0

Okay, so this has proven to be more difficult than I expected and think it should be.

All I want to do is utilize the GData library for some youtube functionality in my site. However, I can't seem to figure out how to add everything in so Zend recognizes the classes.

I've downloaded the latest ZendGdata archive, and added the contents of \library into \vendor\Zend. Next step is to autoload all that into my application right? I've tried searching for how to do it, but nothing has helped. Now I look to you, stackoverflow. Please help me figure this madness out.

4

1 回答 1

2

放弃手动安装供应商并使用将为您管理所有自动加载内容的作曲家怎么样?

将 composer.phar 下载到项目的根目录并运行init以创建基本配置:

curl -s https://getcomposer.org/installer | php
php composer.phar init

按照提示,在搜索需要的包时,选择zendframework/zendgdata并使用版本dev-master。(如果您决定对我推荐的所有依赖项使用 composer,此时您也可以添加zendframework/zendframework: 2.*)。

完成后,composer.json将创建一个文件。接下来安装您的依赖项:

php composer.phar install

一旦这一切都完成了,你应该vendor/autoload.php从入口点需要一个文件来自动加载你的作曲家依赖项。

于 2013-04-30T02:19:37.487 回答