Amazon API Class - php

Out of all the Amazon affiliate PHP classes, could anyone share their experiences or recommend a particular one?

I have used php-aws several times ( http://code.google.com/p/php-aws/ ) and it's pretty solid, I've only used it for Amazon S3 Mind you, but I'm sure the other functionality is solid too.

I found that the zend framework has good amazon library which is enough for me (S3, EC2) - http://framework.zend.com/manual/en/zend.service.amazon.html

Related

OAuth 2.0 Server for PHP

I have been struggling to find an active open-source PHP project that supports OAuth 2.0 as a server. There are tons of client examples that connect to Facebook, Twitter, etc. but as more and more people want to expose their own services through an API I'm a bit surprised the open source community hasn't addressed this need already. It's not that there is nothing but what's there is mostly out-of-date, little-to-no documentation, and very little to no activity in terms of current development and conversation.
Am I missing a good open-source option out there? Does anyone know of any commercial options? I really need to get something in place soonish and I personally don't have the bandwidth or security credentials to tackle this problem myself.
After much searching around I believe I have found the best solution for PHP'ers out there. Opinions are a dime a dozen but here's my favourite:
http://bshaffer.github.io/oauth2-server-php-docs/
Very active, high quality conversation and a solid product along with good (and improving) documentation.
Here is the list of available server and client libraries:
http://oauth.net/2/
which leads to a github project which is maintained.
oauth2 server by php league is much more followed and downloaded project on github. My personal experience has been awesome and the best part is it's documentation. Excellent implementation of oauth2.
According to http://www.zimuel.it/oauth2-apigility/ & http://apigility.org/documentation/auth/authentication-oauth2
You now can implement OAuth 2.0 Server using the open source project Apigility, with Brent Shaffer's implementation underneath...
in the end...
The OAuth2 implementation in Apigility uses the oauth2-server-php
library by Brent Shaffer. Apigility uses a PDO database to store all
the information related to the OAuth2 protocol. You can create your
database using the schema reported in the file
/vendor/zfcampus/zf-oauth2/data/db_oauth2.sql under your Apigility
installation folder (zf-apigility-skeleton).

Framework to write PHP web service

Is there a specific framework out there for PHP to write a REST web service and expose it to JSON?
Or you just basically code it...
I am writing a REST web service, mostly to communicate with a database in MySQL, authentication, etc...
What advantages is there with a framework? Is it more secure?
Have a look at Frapi. Here is the documentation for it.
As for the reasoning, similar to a normal PHP framework.
Documentation
Support
Community
Multiple devs contributing
Not re-inventing the wheel
etc etc
Check out http://www.recessframework.org/
The package Zend.Rest [1] is very nice!
[1] http://framework.zend.com/manual/en/zend.rest.html

uploading to amazon S3 - kohana

Im building an app using kohana. I need to be able to upload files directly to S3. Can you advise on a S3 helper for kohana?
Thanks
Someone wrote a module for Kohana using the AWS PHP SDK.
You can find it here : https://github.com/jylinman/kohana-aws
I would highly recommend using the AWS PHP SDK.
It is not specific to kohana and will work on any platform.
It is really easy to use, especially with S3.
There is minimal setup, and it is really well documented.

YouTube API + PHP + site hosting?

I have made a site which can pull and upload videos from and to YouTube,
http://www.tole-rants.com/
This site was made with the combination of Python, Google App Engine and YouTube API. It is hosted at Google App Engine. I did not code the main structure of this application bcos I don't speak Python so I was made with a Python programmer. However, we found that this application has been causing lot of problems, especially on uploading videos.
Now I hope I can code the entire site myself with PHP - is it possible?
Another big question - do I have to host this site on Google's?? Can I just host this site on a normal/ standard server which I normally do when I develop a website?
I have read the documentation about YouTube API for developers, but I still cannot get my head around if I want to make this site from scratch with PHP.
It seems to suggest that using a PHP framework - Zend Framework, which I have no clues about it - do I really have to use a PHP framework then?
Any thoughts/ better suggestions or any online tutorials/ books I can follow through?
Many thanks,
Lau
No you dont have to host it on Google's. You can host it anywhere. And you don't need to use the Zend Framework. What they are suggesting is that you use the Zend framework's GData library to communicate with YouTube API. But you wouldnt even need that. YouTube Data API documentation is complete with examples. I am sure it will help you. But ofcourse if you have some specific questions you can ask them here.

S3 File Management Skeleton - PHP/MySQL

I am looking for a skeleton framework to manage files on S3 utilizing php/mysql. My hope is that someone has already created it and I can pull from it instead of building it all myself.
I am thinking something like dropbox.com
Anyone know of a open source solution that I can pull from?
Zend Framework offers very robust AWS components, including S3. http://framework.zend.com/manual/en/zend.service.amazon.s3.html

Categories