Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Is it possible to use Zend Expressive with Zend Apigility #342

Closed
pdrosos opened this issue May 6, 2016 · 4 comments
Closed

Is it possible to use Zend Expressive with Zend Apigility #342

pdrosos opened this issue May 6, 2016 · 4 comments
Labels

Comments

@pdrosos
Copy link

pdrosos commented May 6, 2016

Hi all,

I am wondering if Zend Expressive can be used along with Zend Apigility for REST API projects? Does it make sense? If not, which of them is better for what kind of API projects?

I know that middleware architecture is faster than MVC, very suitable for REST APIs and the idea is Apigility 2 to be built on top of Expressive, but this was not started yet. So I would like to know if currently best from both technologies can be used and how should I integrate and use them together.

I should choose a technology for a new REST API project and it will be Apigility, Expressive or both of them, if it makes sense.

Thanks in advance for helping to anyone, who could give me an idea and make it clear!

@ezimuel
Copy link
Contributor

ezimuel commented May 6, 2016

@pdrosos as you said Apigility 2.0 will be based on zend-expressive, at least this the plan. Right now, you can use zend-expressive to build a REST API. I'm working on a prototype of this, without all the features of Apigility.
If your goal is to write a REST API will all the features of Apigility, at the moment I suggest to use it without middleware (zend-expressive).

@pdrosos
Copy link
Author

pdrosos commented May 6, 2016

@ezimuel Thank you for your reply!
Could you please share the prototype, when it's ready? I am sure it will help other people too to choose the right technology for their use case.

@marcguyer
Copy link

Say, for example, you wanted to route certain requests to a legacy ZF1 app, others to a new Apigility app, and still others to some other hypothetical app, wouldn't zend-expressive get that job done? Something like #283 (comment) is what I'm thinking of implementing. Any other suggestions for this concept?

@weierophinney
Copy link
Member

@marcguyer You may want to take a look at https://github.com/janatzend/zend-expressive-legacy-bridge (developed by one of the Professional Services team at Zend/RogueWave); it provides a way for a ZF1 or Symfony1 application to act when no Expressive middleware can handle the request.

@pdrosos We're still evaluating our next steps for Apigility — if the next major version will be based on Expressive, or if we will create a parallel project to Apigility with similar goals, but built on top of Expressive. At this time, we have nothing to share, and it will likely be some months before we can start any planning or work in earnest.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants