How to add Zend REST API to an existing Concrete5 site? - php

I was tasked with developing a REST API using zend framework 2 for a web site created with concrete5 cms. I am very new php and have no idea where to start.
Specifically, my question is about installation and routing. How can I install zend framework on my existing concrete5 project. After that, what should I do to route REST requests to Zend controllers.
Thanks

Have a look at Apigility. This is a Zend solution for the use case you suggest (publishing existing code as an API).
https://apigility.org

Related

Implementing a rest api using zf3

I want to build a new REST API for my application on the base of zend framework 3. Because I'm very new in zend two things are a bit misunderstanding for me: I know there's a component named zf-rest and I also know how to include it via composer. But how does zf-rest "knows" that I want to work with ZF3?
And then I found some sample applications using zf-rest and some only using zend-mvc. So I guess that zend already has a rest implementation. What are the differences between zf-rest and zend-mvc and in which situations should I use which framework?

How to add Yii in Zend

I have a big project in Zend and a small one in Yii.
Now I want to integrate Yii project in Zend project.
Is it possible or no ? And if it's possible are there any links, from where I can read and integrate my project. I've searched in google, but didn't find anything useful.
You should be able to do both: Include 3rd party libraries into Yii and use Yii in other projects. Please have a look at the official guide:
http://www.yiiframework.com/doc/guide/1.1/en/extension.integration
The main steps to integrate Yii e.g. in Zend are:
require_once('path/to/yii.php');
Yii::createWebApplication('path/to/config.php');

Zend Framework 2.0 Acl Library

Ok i already started out this new project for 2 weeks and so far so good.
Up till today i just realize there is no Acl component in Zend 2.0.Is it true? Or im missing something.
So currently im clueless with my application acl.
Did you guys have any suggestion of any acl component that work well with Zend 2.0 that i did not aware of or should i just download Zend 1.x instead.
Any input greatly appreciated.
The ACL component in Zend Framework 2.0 is now called Zend\Permissions\Acl.
I highly recommend reviewing the reference manual. A simple search for the term on that page brought it up right away.

Examples of building a REST API server using Zend Framework?

I'm new to Zend Framework (not to PHP), and I need to create a REST based API using Zend.
I've seen examples using Zend_Rest_Server, however other sources state that that has been deprecated.
I'm unable to find a solid example which shows how I should be building such an API.
Zend_Rest_Server is indeed deprecated since ZF 1.9, you should use Zend_Rest_Controller instead. The following blog posts could be helpful : Building RESTful Services with Zend Framework and Create RESTful Applications Using The Zend Framework.
May be this link would be helpful: Creating a PHP REST API Using the Zend Framework.
This code example support REST data in the format of XML and JSON.
Prerequisites:
PHP version > 5
Zend Framework 1.9.2 (at the minimum)
If you want something a little more in details, you can check the book
Zend Framework 2 Application Development.
The book explains construction of API oriented system in ZF2, through examples.
At the end of book you get:
ZF2 API
ZF2 Client side app.
The book has a lot of syntax errors as well as any book for programming,
but it's only one on the market at this moment.

Blogging Infrastructure using Zend Framework?

I'm researching the prospect of incorporating a blog into my site. Currently, my site is written using the Zend Framework so it's not just a case of using Wordpress and that be the end of it.
I was wondering. Has someone already done what I'm thinking of doing and written a blog infrastructure with comments and so forth using ZF?
Anyone got any suggestions?
Thanks
Steve
I am not aware of a ready to download blog module that you can add to an existing ZF project, but virtually every tutorial in ZF is setting up a Blog.
Check out
Survive The Deep End - Chapter 8: Developing a Blogging Application

Categories