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

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

ytake/lom
=========

lombok style code generator for php

0.2(8y ago)3772MITPHPPHP ^7.1

Since Aug 7Pushed 8y ago2 watchersCompare

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

READMEChangelog (2)Dependencies (10)Versions (4)Used By (0)

Lom
===

[](#lom)

for php code generator

[![Build Status](https://camo.githubusercontent.com/7225750ff6c814a7aa4c4004608b886fd5030c94f68b204af2bef4b6cd256c19/687474703a2f2f696d672e736869656c64732e696f2f7472617669732f7974616b652f4c6f6d2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/ytake/Lom)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/b06502801b7354ec4ad786496c2b4bb7641bda96fb3462b952db4f7e62b9c5a1/687474703a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7974616b652f4c6f6d2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/ytake/Lom/)[![StyleCI](https://camo.githubusercontent.com/b18ed53102664dce04162028afd18377712b6a1bc7e4588666e63102aa971cb7/68747470733a2f2f7374796c6563692e696f2f7265706f732f33383439323531322f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/38492512)[![Coverage Status](https://camo.githubusercontent.com/21d6c28676590da68cb218f015c4e6cf197527d83b7104cfa423ff5e99f7cc95/687474703a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f7974616b652f4c6f6d2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/ytake/Lom)

install
=======

[](#install)

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

usage
=====

[](#usage)

generate command

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

feature
=======

[](#feature)

@Data Annotation
----------------

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

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

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

[](#gettersetter-annotation)

```
use Ytake\Lom\Meta\Getter;
use Ytake\Lom\Meta\Setter;

class GetterSetterAnnotation
{
    /**
     * @Getter @Setter
     * @var string $message
     */
    private $message;
    /**
     * @Getter @Setter
     * @var string $testing
     */
    private $testing;
}
```

@Value Annotation
-----------------

[](#value-annotation)

```
/**
 * Class ValueAnnotation
 * @\Ytake\Lom\Meta\Value
 */
class ValueAnnotation
{
    /**
     * @var string $message
     */
    protected $message;

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

    /** @var string $hello */
    protected $hello;
}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.3% 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 ~1001 days

Total

2

Last Release

2931d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/47817f3dd2890864096bd77ee772ec46061432f128988ca23939b0ca486d7bc3?d=identicon)[ytake](/maintainers/ytake)

---

Top Contributors

[![ytake](https://avatars.githubusercontent.com/u/4454078?v=4)](https://github.com/ytake "ytake (28 commits)")[![MJKruszewski](https://avatars.githubusercontent.com/u/12052557?v=4)](https://github.com/MJKruszewski "MJKruszewski (2 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

---

Tags

boilerplateapplication

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/ytake-lom/health.svg)](https://phpackages.com/packages/ytake-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)[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)[coenjacobs/mozart

Composes all dependencies as a package inside a WordPress plugin

4723.6M20](/packages/coenjacobs-mozart)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[php-soap/wsdl

Deals with WSDLs

173.5M12](/packages/php-soap-wsdl)[acacha/llum

Llum (light in catalan language) illuminates your Laravel projects.

10926.0k](/packages/acacha-llum)

PHPackages © 2026

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