phpmodules / guzzle
a provider
1.0.0
2018-05-25 06:50 UTC
Requires
- php: ^7.1
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
- pimple/pimple: ^3.2
This package is not auto-updated.
Last update: 2024-11-10 06:07:18 UTC
README
Install
composer require phpmodules/guzzle
Usage
for Zend Expressive
in config\config.php
:
$aggregator = new ConfigAggregator([ \Zend\Expressive\Router\FastRouteRouter\ConfigProvider::class, \Zend\HttpHandlerRunner\ConfigProvider::class, // Include cache configuration new ArrayProvider($cacheConfig), \Zend\Expressive\Helper\ConfigProvider::class, \Zend\Expressive\ConfigProvider::class, \Zend\Expressive\Router\ConfigProvider::class, // ------------ \PHPModules\Guzzle\ConfigProvider::class, // ------------ // Load application config in a pre-defined order in such a way that local settings // overwrite global settings. (Loaded as first to last): // - `global.php` // - `*.global.php` // - `local.php` // - `*.local.php` new PhpFileProvider(realpath(__DIR__) . '/autoload/{{,*.}global,{,*.}local}.php'), // Load development config if it exists new PhpFileProvider(realpath(__DIR__) . '/development.config.php'), ], $cacheConfig['config_cache_path']);