PHPackages                             spacetab-io/transformation-layer - 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. spacetab-io/transformation-layer

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

spacetab-io/transformation-layer
================================

Basic transformation layer of any web-application.

1.0.2(6y ago)16591MITPHPPHP &gt;=7.4CI failing

Since Apr 6Pushed 4y ago3 watchersCompare

[ Source](https://github.com/spacetab-io/transformation-php)[ Packagist](https://packagist.org/packages/spacetab-io/transformation-layer)[ RSS](/packages/spacetab-io-transformation-layer/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (3)Versions (5)Used By (1)

Default transformation layer PHP
================================

[](#default-transformation-layer-php)

[![CircleCI](https://camo.githubusercontent.com/110ab22174399576fc59d54bebcbc7a84cfe1726fbcb0d495b8c25c9de1a5606/68747470733a2f2f636972636c6563692e636f6d2f67682f73706163657461622d696f2f7472616e73666f726d6174696f6e2d7068702f747265652f6d61737465722e7376673f7374796c653d737667)](https://circleci.com/gh/spacetab-io/transformation-php/tree/master)[![codecov](https://camo.githubusercontent.com/1bd003c1f4986d16d82ea31c3146cf50922d3859e7f62361cf92dcb0edc211a0/68747470733a2f2f636f6465636f762e696f2f67682f73706163657461622d696f2f7472616e73666f726d6174696f6e2d7068702f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/spacetab-io/transformation-php)

Default transformation layer for most PHP applications.

Installation
------------

[](#installation)

```
composer install spacetab-io/transformation-layer
```

Usage
-----

[](#usage)

```
use Spacetab\Transformation\ValidationError;
use Spacetab\Transformation\ValidationTransformation;

$error = new ValidationError();
$error->addError('user.first_name', 'Minimal length allowed is 2 symbols.');
$error->addError('user.first_name', 'Must be like regular expression /[a-zA-Z]+/.');

$transform = new ValidationTransformation($error);
$transform->doTransform(); // return transformed data (mixed type)
```

Depends
-------

[](#depends)

- &gt;= PHP 7.4
- Composer for install package

License
-------

[](#license)

The MIT License

Copyright © 2020 spacetab.io, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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 ~6 days

Total

3

Last Release

2214d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/35d8eff4a3e66b58f3e2af56fe948035469de1e19ac29c532d65c681955bbd18?d=identicon)[Roquie](/maintainers/Roquie)

---

Top Contributors

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

---

Tags

phpphp74transformation

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/spacetab-io-transformation-layer/health.svg)

```
[![Health](https://phpackages.com/badges/spacetab-io-transformation-layer/health.svg)](https://phpackages.com/packages/spacetab-io-transformation-layer)
```

###  Alternatives

[magyarjeti/laravel-lipsum

Lorem ipsum generator for Laravel Framework

1617.9k](/packages/magyarjeti-laravel-lipsum)[ibrahimbougaoua/radiobuttonimage

This is my package radiobuttonimage

166.0k](/packages/ibrahimbougaoua-radiobuttonimage)

PHPackages © 2026

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