PHPackages                             eventsourced/valueobjects-transpiler - 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. eventsourced/valueobjects-transpiler

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

eventsourced/valueobjects-transpiler
====================================

A code Generator for ValueObjects

027PHP

Since Jul 29Pushed 9y ago3 watchersCompare

[ Source](https://github.com/domain-query-language/valueobject-transpiler)[ Packagist](https://packagist.org/packages/eventsourced/valueobjects-transpiler)[ RSS](/packages/eventsourced-valueobjects-transpiler/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

ValueobjectTranspiler
=====================

[](#valueobjecttranspiler)

A command line tool that generates PHP classes for ValueObjects, Entities, Commands and Events, based on a Yaml config file.

### Config file

[](#config-file)

Here is a sample config file

```
# ValueObjects
value\Integer: is intVal

value\Quantity: is intval and between 1, 20

value\Range:
  min: value\Integer
  max: value\Integer

# Collections
value\Products: contains entity\Product

# Entites
entity\User:
  id: value\Id
  name: value\Name

entity\Product:
  id: value\Id
  product_id: value\ProductId
  quantity: value\Quantity

# Commands
command\CreateUser:
  id: value\Id
  user: entity\User

# Events
event\ProductCreated:
  id: value\Id
  product: entity\Product
  quantity: value\Quantity
```

### Location of config file

[](#location-of-config-file)

Put the config file in the folder that should contain the generated code.

### Namespaces

[](#namespaces)

The script will figure out namespaces based on the folder structure (it's PSR0 compliant). If you set the root as "/home/project/" and it finds a config file at "/home/project/cart/values/vos.yaml" Then it will set the namespace as "

### Generating

[](#generating)

To generate code simple call the following in console.

```
php generate.php [path_of_your_project_root]

```

The system will scan for any vos.yaml files in that folder and any of its subfodlers.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/325820?v=4)[Barry O Sullivan](/maintainers/barryosull)[@barryosull](https://github.com/barryosull)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/eventsourced-valueobjects-transpiler/health.svg)

```
[![Health](https://phpackages.com/badges/eventsourced-valueobjects-transpiler/health.svg)](https://phpackages.com/packages/eventsourced-valueobjects-transpiler)
```

###  Alternatives

[dbrekelmans/browser-driver-installer

Helps you install the appropriate browser driver.

468.0k](/packages/dbrekelmans-browser-driver-installer)[topthink/think-ide-helper

2423.0k12](/packages/topthink-think-ide-helper)

PHPackages © 2026

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