How do I create API for a Zend Framework site?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
DaveTheAve
Forum Contributor
Posts: 385
Joined: Tue Oct 03, 2006 2:25 pm
Location: 127.0.0.1
Contact:

How do I create API for a Zend Framework site?

Post by DaveTheAve »

Does anyone know of a good tutorial or at least point me in the right direction on how to create an API service for an existing or new site that was built around Zend Framework. (Note: Zend Framework is the BEST!)
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: How do I create API for a Zend Framework site?

Post by Christopher »

What does "API service" mean?
(#10850)
User avatar
DaveTheAve
Forum Contributor
Posts: 385
Joined: Tue Oct 03, 2006 2:25 pm
Location: 127.0.0.1
Contact:

Re: How do I create API for a Zend Framework site?

Post by DaveTheAve »

I would like to let other developers integrate with our site through an API.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: How do I create API for a Zend Framework site?

Post by Christopher »

What API? Like Atom/RSS? Or SOAP/XMLRPC? Or plugins?
(#10850)
User avatar
DaveTheAve
Forum Contributor
Posts: 385
Joined: Tue Oct 03, 2006 2:25 pm
Location: 127.0.0.1
Contact:

Re: How do I create API for a Zend Framework site?

Post by DaveTheAve »

I suppose it would indeed help if I stated how the API was to be accessed. I was hoping for transmissions to and from the API via a XML format. The API would be used to obtain and post data to and from the application. (Allow authenticate the API session somehow using a token. Should be fun to figure that out to the way i've been asked too. :roll: )
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: How do I create API for a Zend Framework site?

Post by Christopher »

Well ... there is both XML and XMLRPC support. Plus you might be able to you the new context stuff in your Controllers.
(#10850)
anto91
Forum Commoner
Posts: 58
Joined: Mon Mar 10, 2008 10:59 am
Location: Sweden

Re: How do I create API for a Zend Framework site?

Post by anto91 »

They could also develop/write plugins using the Zend_Controller_Plugin_Abstract class then loading it from the bootstrap
User avatar
DaveTheAve
Forum Contributor
Posts: 385
Joined: Tue Oct 03, 2006 2:25 pm
Location: 127.0.0.1
Contact:

Re: How do I create API for a Zend Framework site?

Post by DaveTheAve »

They finished the Plugin Class already? Wow, i've been away from programming for too long (4-5 months).

I need to read up on the ZF manual.
Post Reply