# Http-server-middleware is abandoned for zend-expressive 3alpha

**URL:** <https://discourse.laminas.dev/t/http-server-middleware-is-abandoned-for-zend-expressive-3alpha/465>\
**Category:** Mezzio\
**Tags:** expressive\
**Created:** [February 6, 2018, 7:10pm UTC](https://discourse.laminas.dev/t/http-server-middleware-is-abandoned-for-zend-expressive-3alpha/465 "2018-02-06T19:10:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![drakulitka](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/drakulitka/32/188_2.png) [@drakulitka](https://discourse.laminas.dev/u/drakulitka)\
**Post date:** [February 6, 2018, 7:10pm UTC](https://discourse.laminas.dev/t/http-server-middleware-is-abandoned-for-zend-expressive-3alpha/465/1 "2018-02-06T19:10:24Z")

</div>

When **zend-expressive 3.0.0alpha3** is installed, the composer issues a message:

> Package http-interop/http-server-middleware is abandoned, you should avoid using it. Use psr/http-server-middleware instead.

I change the interface for my middleware  
from **_Interop\Http\Server\MiddlewareInterface_**  
to _ **Psr\Http\Server\MiddlewareInterface** _

and I see an error:

> Lazy-loaded middleware “Zend\Expressive\Helper\ServerUrlMiddleware” is neither invokable nor implements Interop\Http\Server\MiddlewareInterface

in _/vendor/zendframework/zend-expressive/src/Middleware/LazyLoadingMiddleware.php_

```
// Unknown - invalid!
if (! is_callable($middleware)) {
    throw new InvalidMiddlewareException(sprintf(
        'Lazy-loaded middleware "%s" is neither invokable nor implements %s',
        $this->middlewareName,
        MiddlewareInterface::class
    ));
}

```

Am I doing the right thing?

---

<div class="post-metadata">

**Author:** ![matthew](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/matthew/32/14_2.png) [@matthew](https://discourse.laminas.dev/u/matthew)\
**Post date:** [February 7, 2018, 7:03pm UTC](https://discourse.laminas.dev/t/http-server-middleware-is-abandoned-for-zend-expressive-3alpha/465/2 "2018-02-07T19:03:44Z")

</div>

We’re actively working on creating alpha releases of all packages related to Expressive. As such, I recommend adding the following to your `composer.json`:

```json
"minimum-stability": "alpha"

```

And then specifying `^X.0` for each expressive-related constraint, where `X` will be whatever the next major release is available for that particular package. Use `composer show` to see what’s currently installed.

In particular, zend-expressive-helpers is currently at 5.0.0alpha3, and that version has a number of changes that include PSR-15 support.

---

<div class="post-metadata">

**Author:** ![drakulitka](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/drakulitka/32/188_2.png) [@drakulitka](https://discourse.laminas.dev/u/drakulitka)\
**Post date:** [February 9, 2018, 7:05am UTC](https://discourse.laminas.dev/t/http-server-middleware-is-abandoned-for-zend-expressive-3alpha/465/3 "2018-02-09T07:05:10Z")

</div>

Thank you, the application has earned!!!
