Does Zend Framework 2.0 leave out the amazon s3 library functions that were included in 1.12?

烈酒焚心 提交于 2019-12-06 04:01:13

问题


I was unable to find the equivalent of this

http://framework.zend.com/manual/1.12/en/zend.service.amazon.s3.html

In the 2.0 version documentation. I also noticed that the 2.0 minimal version is 2.5MB while the 1.12 minimal version is 8.7MB and the full 1.12 version is ~30MB.


回答1:


ZF2 doesn't provides a built-in library for S3 or any other AWS services by default. Zend\Service components has been removed from repository as of July 2012 and some of them still maintained under individual repositories.

But the good news is Amazon announced their own AWS-SDK module for ZF2 on March 2013. Also it has a github link. Currently its in very early stages and seems like a ZF2 friendly wrapper for amazon's official PHP SDK, it's promising.

For more detailed information about this situation, read the RFC here.




回答2:


I tried using something like: use Zend\Service\Amazon\S3\S3 in my project since I use Zend Framework 2 but it didn't work!

I don't think that it's available anymore in Zend Framework 2.1. Apparently it was available in Zend Framework 2.0: http://framework.zend.com/issues/browse/ZF2-268 but you can use ZendServiceAmazon which will probably do the job: http://framework.zend.com/manual/2.1/en/modules/zendservice.amazon.html




回答3:


Look at: http://framework.zend.com/downloads/composer

"Starting with Zend Framework 2, you may now install Zend Framework or any of its individual components and their dependencies, using the dependency management tool Composer. Packages are provided by our dedicated packages repository at https://packages.zendframework.com/"



来源:https://stackoverflow.com/questions/12555356/does-zend-framework-2-0-leave-out-the-amazon-s3-library-functions-that-were-incl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!