Download the PHP package sebrogala/xsv-base without Composer
On this page you can find all versions of the php package sebrogala/xsv-base. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sebrogala/xsv-base
More information about sebrogala/xsv-base
Files in sebrogala/xsv-base
Package xsv-base
Short Description Module with some utils on which other modules can base in Zend Expressive
License BSD-3-Clause
Homepage https://github.com/SebRogala/xsv-base
Informations about the package xsv-base
XsvBase
Module with some utils on which other modules can base in Zend Expressive 3.
To install simply use composer:
Body Params Middleware
Enchanted version which allows to use $request->getParsedBody() on PUT request. For more details see original Middleware. To use new version you have to remove (if already used) invokable from config:
and put new key to 'factories' key, so final should look like:
Or if you didn't have one yet, you can simply copy 'body-params-factory.local.php.dist' file from 'data' folder to config/autoload and remove .dist extension.
Common Dependency Injection
If constructor is used only for assigning local variables (Dependency Injection) and it's in common pattern like Handlers, Actions, InputFilter or anything that follows naming convention with type name on the end of class name, there can be used Abstract Factory:
Copy xsv-base-config.global.php.dist
to config/autoload
folder and configure your common types there.
Handy copy commands
All versions of xsv-base with dependencies
zendframework/zend-inputfilter Version ^2.8