PHPackages                             kolaente/kuchen-name - 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. kolaente/kuchen-name

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

kolaente/kuchen-name
====================

Generate random German cake names.

v1.0.0(1mo ago)00LGPL-3.0-onlyPHPPHP ^8.2CI passing

Since Apr 27Pushed 1mo agoCompare

[ Source](https://github.com/kolaente/kuchen-name)[ Packagist](https://packagist.org/packages/kolaente/kuchen-name)[ RSS](/packages/kolaente-kuchen-name/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

kuchen-name
===========

[](#kuchen-name)

Generate random German cake names — `saftige-kirsch-torte`, `süßer-apfel-kuchen`, `schlichtes-marzipan-brötchen`. Inspired by [petname](https://github.com/dustinkirkland/petname).

Install
-------

[](#install)

```
composer require kolaente/kuchen-name

```

Requires PHP 8.2+.

Library
-------

[](#library)

```
use KuchenName\Generator;

$gen = Generator::default();
echo $gen->generate();                              // saftige-torte
echo $gen->generate(words: 3);                      // süßer-apfel-kuchen
echo $gen->generate(words: 4, separator: '_');      // saftiger_schoko_kirsch_kuchen
```

For deterministic output (tests, fixtures), inject a seeded `Randomizer`:

```
use Random\Randomizer;
use Random\Engine\Mt19937;

$gen = Generator::default(new Randomizer(new Mt19937(seed: 42)));
```

How it works
------------

[](#how-it-works)

Three text files under `resources/`:

- `adjektive.txt` — adjective stems (no ending), e.g. `saftig`, `süß`
- `sorten.txt` — flavors / ingredients, e.g. `schoko`, `kirsch`
- `kuchentypen.txt` — `Noun|gender` pairs, e.g. `Torte|f`

For 2 words: `-`. For N≥3: `-×(N-2)-`. The adjective is inflected to match the noun's grammatical gender (`-er`/`-e`/`-es`).

### Irregular adjectives

[](#irregular-adjectives)

Stems ending in `-el` or `-er` (e.g. `dunkel`, `edel`, `teuer`, `sauer`) drop their final `e` when an ending is added: `dunkle Torte`, not `dunkele Torte`. To handle these, write the entry on one line as `stem|masculine|feminine|neuter`:

```
dunkel|dunkler|dunkle|dunkles
edel|edler|edle|edles

```

Regular adjectives stay as a single token (`saftig`). Mixed entries in the same file are fine.

To add words, edit the text files and send a PR.

License
-------

[](#license)

LGPL-3.0-only. See [LICENSE](LICENSE).

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance91

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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

Unknown

Total

1

Last Release

43d ago

### Community

Maintainers

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

---

Top Contributors

[![tink-bot](https://avatars.githubusercontent.com/u/259739204?v=4)](https://github.com/tink-bot "tink-bot (17 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kolaente-kuchen-name/health.svg)

```
[![Health](https://phpackages.com/badges/kolaente-kuchen-name/health.svg)](https://phpackages.com/packages/kolaente-kuchen-name)
```

###  Alternatives

[comocode/laravel-ab

Blade level AB tests for Laravel 5

3139.4k](/packages/comocode-laravel-ab)

PHPackages © 2026

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