PHPackages                             raphaelscheinkoenig/lom - 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. raphaelscheinkoenig/lom

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

raphaelscheinkoenig/lom
=======================

lombok style code generator for php

0.1(10y ago)024MITPHP

Since Aug 7Pushed 8y agoCompare

[ Source](https://github.com/RaphaelSchein/Lom)[ Packagist](https://packagist.org/packages/raphaelscheinkoenig/lom)[ RSS](/packages/raphaelscheinkoenig-lom/feed)WikiDiscussions develop Synced 2d ago

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

Lom
===

[](#lom)

for php code generator
[![Scrutinizer Code Quality](https://camo.githubusercontent.com/dc829df7ee6c3c5d9bd735b05e81a12aeabe1edd40e02c9abbabe3a8cccaba37/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7974616b652f4c6f6d2f6261646765732f7175616c6974792d73636f72652e706e673f623d646576656c6f70)](https://scrutinizer-ci.com/g/ytake/Lom/?branch=develop)[![Build Status](https://camo.githubusercontent.com/3f29ef8a34a7cf59a076f33027aedb9dd68a2f75c84659aa8c5624a102c0f0fd/68747470733a2f2f7472617669732d63692e6f72672f7974616b652f4c6f6d2e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/ytake/Lom)[![Coverage Status](https://camo.githubusercontent.com/3b7bdb4f1bc1af11b2456a41ab511591de03ee56660b2f74650b36cf3a350fce/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f7974616b652f4c6f6d2f62616467652e7376673f6272616e63683d646576656c6f7026736572766963653d676974687562)](https://coveralls.io/github/ytake/Lom?branch=develop)[![StyleCI](https://camo.githubusercontent.com/7731064e2534d5e81b9cc5704079fe9ead9ebc7110b3996142d41feb4da4165d/68747470733a2f2f7374796c6563692e696f2f7265706f732f33383439323531322f736869656c64)](https://styleci.io/repos/38492512)
[![SensioLabsInsight](https://camo.githubusercontent.com/49a3dff35be81e144cb8abce5c8665ba20b461c4d1a4d5774ca7c2ad147b47cc/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f31646532353461322d396166352d343563632d616564352d3035663661366366333263622f6d696e692e706e67)](https://insight.sensiolabs.com/projects/1de254a2-9af5-45cc-aed5-05f6a6cf32cb)

install
=======

[](#install)

```
$ composer require ytake/lom --dev
```

usage
=====

[](#usage)

generate command

```
$ vendor/bin/lom generate [scan target dir]
```

feature
=======

[](#feature)

\##@Data Annotation

```
use Ytake\Lom\Meta\Data;

/**
 * Class DataAnnotation
 * @Data
 */
class DataAnnotation
{

    /**
     * @var string $message
     */
    protected $message;

    /**
     * @var string $testing
     */
    protected $testing;

}
```

after

```
use Ytake\Lom\Meta\Data;

/**
 * Class DataAnnotation
 * @Data
 */
class DataAnnotation
{

    /**
     * @var string $message
     */
    protected $message;

    public function getMessage()
    {
        return $this->message;
    }

    public function setMessage($message)
    {
        $this->message = $message;
    }
}
```

\##@NoArgsConstructor Annotation

```
use Ytake\Lom\Meta\NoArgsConstructor;

/**
 * Class DataAnnotation
 * @NoArgsConstructor
 */
class DataAnnotation
{

    public function __construct($message)
    {
        $this->message = $message;
    }
}
```

after

```
use Ytake\Lom\Meta\NoArgsConstructor;

/**
 * Class DataAnnotation
 * @NoArgsConstructor
 */
class DataAnnotation
{

}
```

\##@AllArgsConstructor Annotation

```
use Ytake\Lom\Meta\AllArgsConstructor;

/**
 * Class DataAnnotation
 * @AllArgsConstructor
 */
class DataAnnotation
{

    protected $arg1;

    protected $arg2;
}
```

after

```
use Ytake\Lom\Meta\AllArgsConstructor;

/**
 * Class DataAnnotation
 * @AllArgsConstructor
 */
class DataAnnotation
{

    protected $arg1;

    protected $arg2;

    public function __construct($arg1, $arg2)
    {
        $this->arg1 = $arg1;
        $this->arg2 = $arg2;
    }
}
```

\##@Getter/@Setter Annotation

\##@Value Annotation

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

3933d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b2fd509e3f650e57ffce6e5e01ab23b0a0aa2ce8949b6d78fdbfbd77ca566ce5?d=identicon)[RaphaelScheinkoenig](/maintainers/RaphaelScheinkoenig)

---

Tags

boilerplateapplication

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/raphaelscheinkoenig-lom/health.svg)

```
[![Health](https://phpackages.com/badges/raphaelscheinkoenig-lom/health.svg)](https://phpackages.com/packages/raphaelscheinkoenig-lom)
```

###  Alternatives

[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[coenjacobs/mozart

Composes all dependencies as a package inside a WordPress plugin

4723.6M20](/packages/coenjacobs-mozart)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[roave/backward-compatibility-check

Tool to compare two revisions of a public API to check for BC breaks

5953.3M56](/packages/roave-backward-compatibility-check)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

96374.6k23](/packages/friendsoftypo3-content-blocks)

PHPackages © 2026

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