PHPackages                             lesname/documentor - 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. lesname/documentor

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

lesname/documentor
==================

0.7.2(3mo ago)01.4k2MITPHPPHP ^8.4.0

Since Jan 15Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/Lesname/php-documentor)[ Packagist](https://packagist.org/packages/lesname/documentor)[ RSS](/packages/lesname-documentor/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (12)Versions (71)Used By (2)

Les Documentor
==============

[](#les-documentor)

Les Documentor is a library that helps read sources and transform it to type documents.

Current sources supported:

- [ValueObjects](https://packagist.org/packages/lesname/value-object)
- OpenApi

Example
-------

[](#example)

### Value object

[](#value-object)

```
use LesDocumentor\Type\ClassPropertiesTypeDocumentor;
use LesValueObject\String\Format\EmailAddress;

$documentor = new ClassPropertiesTypeDocumentor();

$document = $documentor->document(EmailAddress::class);

```

Result:

```
StringTypeDocument
- reference: LesValueObject\String\Format\EmailAddress
- description: null
- nullable: false
- length
    - minimal: 5
    - maximal: 255
- format: null
- pattern: null

```

### OpenApi

[](#openapi)

```
use LesDocumentor\Type\OpenApiTypeDocumentor;

$documentor = new OpenApiTypeDocumentor();

$document = $documentor->document(
    [
            "type" => "integer",
            "minimum" => 100,
            "maximum" => 600
    ],
);

```

Result:

```
NumberTypeDocument
- reference: null
- description: null
- nullable: false
- range
    - minimal: 100
    - maximal 500
- multipleOf: null
- format: null

```

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance82

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity72

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

Recently: every ~75 days

Total

69

Last Release

93d ago

PHP version history (4 changes)0.1.0PHP ^8.0.0

0.1.6PHP ^8.1.0

0.3.0PHP ^8.2.0

0.3.5PHP ^8.4.0

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/lesname-documentor/health.svg)

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

PHPackages © 2026

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