PHPackages                             vlaim/slownie - 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. vlaim/slownie

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

vlaim/slownie
=============

A library for writing numbers in word form in Polish

1.0.2(1y ago)014.8kMITPHPPHP &gt;=7.2CI passing

Since Jul 26Pushed 1y agoCompare

[ Source](https://github.com/vlaim/slownie)[ Packagist](https://packagist.org/packages/vlaim/slownie)[ RSS](/packages/vlaim-slownie/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

Słownie
=======

[](#słownie)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2931ff04ce32ff49a89156a3cef9022ae45b98ca8e90a0209b6d04d31b72463a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f766c61696d2f736c6f776e69652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vlaim/slownie)[![PHP UNIT](https://github.com/vlaim/slownie/actions/workflows/php.yml/badge.svg)](https://github.com/vlaim/slownie/actions/workflows/php.yml/badge.svg)

🇵🇱 **Słownie** to biblioteka PHP umożliwiająca zamianę liczb na zapis słowny w języku polskim.

🇬🇧 **Słownie** is a PHP library that converts numbers into words in Polish.

📦 Installation
--------------

[](#-installation)

### Using Composer

[](#using-composer)

Install this package via [Composer](https://getcomposer.org/):

```
{
    "require": {
        "vlaim/slownie": "^1"
    }
}
```

Run:

```
composer require vlaim/slownie
```

🚀 Basic Usage
-------------

[](#-basic-usage)

The main method to convert numbers to words:

```
Slownie::convert($number, bool $hideGrosze = false, bool $hideZlote = false)
```

### Parameters:

[](#parameters)

- **$number** *(int | float | string)* – The number to convert.
- **$hideGrosze** *(bool, default: false)* – If `true`, omits grosze (00/100).
- **$hideZlote** *(bool, default: false)* – If `true`, omits "złoty/złotych/złote".

### Examples:

[](#examples)

Convert a number to words:

```
Slownie::convert(10348);
// Output: "dziesięć tysięcy trzysta czterdzieści osiem złotych 00/100"
```

Hide grosze:

```
Slownie::convert(10348, true);
// Output: "dziesięć tysięcy trzysta czterdzieści osiem złotych"
```

Hide "złoty/złotych/złote":

```
Slownie::convert(10348, true, true);
// Output: "dziesięć tysięcy trzysta czterdzieści osiem"
```

🧪 Running Tests
---------------

[](#-running-tests)

To run tests, use:

```
composer test
```

🛠 Issues &amp; Support
----------------------

[](#-issues--support)

For bug reports and feature requests, visit the [GitHub Issue Tracker](https://github.com/vlaim/slownie/issues).

Feel free to open an issue if you have any questions.

📜 License
---------

[](#-license)

**vlaim/slownie** is released under the [MIT License](LICENSE.md).

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance45

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

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

Total

3

Last Release

425d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/63e470dd6139c104a2624af36c2eb17436d7d8b1388179c75de96d4b0ff6802d?d=identicon)[vlaim](/maintainers/vlaim)

---

Top Contributors

[![vlaim](https://avatars.githubusercontent.com/u/1304775?v=4)](https://github.com/vlaim "vlaim (24 commits)")

---

Tags

numbers-to-wordspolish-languageslowniecurrencynumber to wordspolishpolish-language

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/vlaim-slownie/health.svg)

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

###  Alternatives

[brick/money

Money and currency library

1.9k37.9M102](/packages/brick-money)[florianv/swap

Exchange rates library for PHP

1.3k6.4M16](/packages/florianv-swap)[cknow/laravel-money

Laravel Money

1.0k4.3M22](/packages/cknow-laravel-money)[akaunting/laravel-money

Currency formatting and conversion package for Laravel

7825.3M18](/packages/akaunting-laravel-money)[webpatser/laravel-countries

Modern Laravel Countries package providing ISO 3166-2, ISO 3166-3, currency, capital and more for all countries. Compatible with Laravel 11.x and 12.x.

8272.8M8](/packages/webpatser-laravel-countries)[kwn/number-to-words

Multi language standalone PHP number to words converter. Fully tested, open for extensions and new languages.

4235.0M21](/packages/kwn-number-to-words)

PHPackages © 2026

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