/home/techb158/ileadtechnology.com/vendor/league/glide/docs/1.0/config/integrations
Edit: /home/techb158/ileadtechnology.com/vendor/league/glide/docs/1.0/config/integrations/psr-7.md (1050B)
---
layout: default
title: PSR-7 integration
---
# PSR-7 integration
Glide ships with the `PsrResponseFactory` class, allowing you to use any [PSR-7](http://www.php-fig.org/psr/psr-7/) compliant library. However, since Glide only depends on the PSR-7 interfaces, it cannot actually create the `Response` or `Stream` objects. Instead, you must provide them.
## Configuration
The following example uses the [Zend Diactoros](https://github.com/zendframework/zend-diactoros) library, but any PSR-7 compatible package will work.
~~~ php
new PsrResponseFactory(new Response(), function ($stream) {
return new Stream($stream);
}),
]);
~~~
## Vendor specific adapters
However, for simplicity, Glide provides a vendor specific PSR-7 adapters to make this easier:
- [Slim](/1.0/config/integrations/slim/)
- [Zend](/1.0/config/integrations/zend/)