PHPackages                             korleader/polish-words-generator - 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. korleader/polish-words-generator

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

korleader/polish-words-generator
================================

PHP Polish words generator

116PHP

Since May 25Pushed 9y agoCompare

[ Source](https://github.com/korleader/polish-words-generator)[ Packagist](https://packagist.org/packages/korleader/polish-words-generator)[ RSS](/packages/korleader-polish-words-generator/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

polish-words-generator
======================

[](#polish-words-generator)

Polish words generator

Installation
------------

[](#installation)

The preferred installation method is via `composer`. First use the require command, just run:

```
composer require korleader/polish-words-generator dev-master
```

Then run `composer update`

Usage
-----

[](#usage)

### Getting Started

[](#getting-started)

```
$polgen = new korleader\PolishGenerator();
```

or create object with extra parameters

```
$polgen = new korleader\PolishGenerator([
    'minWordsInSentence' => 10,
    'maxWordsInSentence' => 15,
    'minSentencesInParagraph' => 5,
    'maxSentencesInParagraph' => 10
]);
```

### Enable parameters

[](#enable-parameters)

- minWordsInSentence - Minimum number of words in a sentence
- maxWordsInSentence - Maximum number of words in a sentence
- minSentencesInParagraph - Minimum number of sentences in the paragraph
- maxSentencesInParagraph - Maximum number of sentences in the paragraph
- paragraphTag - The HTML tag used to wrapping paragraphs
- wordsArray - Array with words to generate

### Generating words

[](#generating-words)

```
echo '1 word: '  . $polgen->words();
echo '10 words: ' . $polgen->words(10);
```

### Generating sentences

[](#generating-sentences)

```
echo '1 sentence:  ' . $polgen->sentences();
echo '10 sentences: ' . $polgen->sentences(10);
```

### Generating paragraphs

[](#generating-paragraphs)

```
echo '1 paragraph:  ' . $polgen->paragraphs();
echo '10 paragraphs: ' . $polgen->paragraphs(10);
```

### Extra methods

[](#extra-methods)

Set 10 words to generate in sentence

```
$polgen->setSentenceWordsCount(10)
```

Set random between 10 and 15 words to generate in sentence

```
$polgen->setSentenceWordsCount(10, 15)
```

Set 10 of sentences to generate in paragraph

```
$polgen->setParagraphSentencesCount(5)
```

Set random between 10 and 15 sentences to generate in paragraph

```
$polgen->setParagraphSentencesCount(5, 10)
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/28922240?v=4)[KorLeader](/maintainers/korleader)[@korleader](https://github.com/korleader)

---

Top Contributors

[![korleader](https://avatars.githubusercontent.com/u/28922240?v=4)](https://github.com/korleader "korleader (1 commits)")

### Embed Badge

![Health badge](/badges/korleader-polish-words-generator/health.svg)

```
[![Health](https://phpackages.com/badges/korleader-polish-words-generator/health.svg)](https://phpackages.com/packages/korleader-polish-words-generator)
```

PHPackages © 2026

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