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

狂风中的少年 提交于 2019-12-04 08:00:49

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.

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

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/"

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