PHPackages                             sebrogala/xsv-base - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. sebrogala/xsv-base

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sebrogala/xsv-base
==================

Module with some utils on which other modules can base in Zend Expressive

3.2.0(7y ago)072BSD-3-ClausePHP

Since Sep 4Pushed 7y agoCompare

[ Source](https://github.com/SebRogala/xsv-base)[ Packagist](https://packagist.org/packages/sebrogala/xsv-base)[ Docs](https://github.com/SebRogala/xsv-base)[ RSS](/packages/sebrogala-xsv-base/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (8)Used By (0)

XsvBase
=======

[](#xsvbase)

Module with some utils on which other modules can base in Zend Expressive 3.

To install simply use composer:

```
composer require sebrogala/xsv-base:^3.0

```

### Body Params Middleware

[](#body-params-middleware)

Enchanted version which allows to use $request-&gt;getParsedBody() on PUT request. For more details [see original Middleware](http://zend-expressive.readthedocs.io/en/stable/features/helpers/body-parse/). To use new version you have to remove (if already used) invokable from config:

```
'dependencies' => [
        'invokables' => [
            Helper\BodyParams\BodyParamsMiddleware::class => Helper\BodyParams\BodyParamsMiddleware::class,
            /* ... */
        ],
        'factories' => [
            /* ... */
        ],
    ],
```

and put new key to 'factories' key, so final should look like:

```
'dependencies' => [
        'invokables' => [
            /* ... */
        ],
        'factories' => [
            Helper\BodyParams\BodyParamsMiddleware::class => Xsv\Base\Factory\BodyParams\BodyParamsFactory::class,
            /* ... */
        ],
    ],
```

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

[](#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

[](#handy-copy-commands)

```
cp vendor/sebrogala/xsv-base/data/xsv-base-config.global.php.dist config/autoload/xsv-base-config.global.php
cp vendor/sebrogala/xsv-base/data/App/Entity.php.dist src/App/src/Entity.php
cp vendor/sebrogala/xsv-base/data/App/Repository.php.dist src/App/src/Repository.php
cp vendor/sebrogala/xsv-base/data/App/RepositoryInterface.php.dist src/App/src/RepositoryInterface.php
cp vendor/sebrogala/xsv-base/data/App/UuidGen.php.dist src/App/src/UuidGen.php
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~117 days

Recently: every ~17 days

Total

7

Last Release

2833d ago

Major Versions

0.1 → 2.0.02018-02-15

2.0.0 → 3.0.02018-05-31

### Community

Maintainers

![](https://www.gravatar.com/avatar/23e199a9c584deaf622ab523503eec877043bcb2a7da4e078b3e7658202c3b86?d=identicon)[SebRogala](/maintainers/SebRogala)

---

Top Contributors

[![SebRogala](https://avatars.githubusercontent.com/u/12585578?v=4)](https://github.com/SebRogala "SebRogala (22 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sebrogala-xsv-base/health.svg)

```
[![Health](https://phpackages.com/badges/sebrogala-xsv-base/health.svg)](https://phpackages.com/packages/sebrogala-xsv-base)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
