PHPackages                             vendimia/helper - 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. [Database &amp; ORM](/categories/database)
4. /
5. vendimia/helper

ActiveLibrary[Database &amp; ORM](/categories/database)

vendimia/helper
===============

Assorted helper classes

0.3(9mo ago)0542GPL-3.0-or-laterPHPPHP &gt;=8.1

Since Oct 3Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/vendimia/helper)[ Packagist](https://packagist.org/packages/vendimia/helper)[ RSS](/packages/vendimia-helper/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (2)

Vendimia helper classes
=======================

[](#vendimia-helper-classes)

`Vendimia\Helper\TextFromDocComment`
------------------------------------

[](#vendimiahelpertextfromdoccomment)

Process a DocComment, (perhaps obtained with `Reflection*::getDocComment()` method), obtaining only the text with preceding or trailing spaces or empty lines removed. Also remove an initial `*` on each line.

### `public string $text`

[](#public-string-text)

Processed text, also obtainable by using the class in a string context.

### `public function __construct(string $doc_comment, bool $merge_lines = true)`

[](#public-function-__constructstring-doc_comment-bool-merge_lines--true)

- `string $doc_comment`: Original doc comment.
- `bool $merge_lines`: `true` merges continuous non-empty lines as one, joined by a single empty space. `false` returns the lines as is.

### Example

[](#example)

```
use Vendimia\Helper\TextFromDocComment;

require __DIR__ . '/vendor/autoload.php';

/**
 * This is a dummy function.
 *
 * Its purpose is to hold a multiline doc comment to test the
 * Vendimia\Helper\TextFromDocComment class.
 */
function dummy()
{

}

echo (string)new TextFromDocComment(
    new ReflectionFunction(dummy(...))->getDocComment()
);
```

This outputs:

```
This is a dummy function.
Its purpose is to hold a multiline doc comment to test the Vendimia\Helper\TextFromDocComment class.

```

On PHP prior to 8.4, you must enclose `new ReflectionFunction(dummy(...))` on parenthesis.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance56

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity40

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

Total

3

Last Release

291d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1307948?v=4)[Oliver Etchebarne](/maintainers/drmad)[@drmad](https://github.com/drmad)

---

Top Contributors

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

---

Tags

phpormvendimia

### Embed Badge

![Health badge](/badges/vendimia-helper/health.svg)

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

###  Alternatives

[matchory/elasticsearch

The missing elasticsearch ORM for Laravel!

3059.0k](/packages/matchory-elasticsearch)[modul-is/orm

Lightweight hybrid ORM/Explorer

1118.1k](/packages/modul-is-orm)[riverside/php-orm

PHP ORM micro-library and query builder

111.2k](/packages/riverside-php-orm)

PHPackages © 2026

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