PHPackages                             kaungkhantjc/myanmar-wikipedia-faker - 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. kaungkhantjc/myanmar-wikipedia-faker

ActiveLibrary

kaungkhantjc/myanmar-wikipedia-faker
====================================

A high-performance Myanmar (Burmese) text generator based on the DatarrX Wikipedia Dataset.

1.0.1(today)02↑2900%MITPHPPHP ^8.4 || ^8.5CI passing

Since Jul 31Pushed todayCompare

[ Source](https://github.com/kaungkhantjc/myanmar-wikipedia-faker)[ Packagist](https://packagist.org/packages/kaungkhantjc/myanmar-wikipedia-faker)[ RSS](/packages/kaungkhantjc-myanmar-wikipedia-faker/feed)WikiDiscussions main Synced today

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

[![Social Card](https://github.com/kaungkhantjc/myanmar-wikipedia-faker/raw/main/art/social-card.png)](https://github.com/kaungkhantjc/myanmar-wikipedia-faker/blob/main/art/social-card.png)

Myanmar Wikipedia Faker
=======================

[](#myanmar-wikipedia-faker)

[![Run Tests](https://github.com/kaungkhantjc/myanmar-wikipedia-faker/actions/workflows/tests.yml/badge.svg)](https://github.com/kaungkhantjc/myanmar-wikipedia-faker/actions/workflows/tests.yml)[![Latest Stable Version](https://camo.githubusercontent.com/a9aaf65997b7d3c2bd61f4744194fc085741aea6b41383aa3bfe0025d2db07bf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b61756e676b68616e746a632f6d79616e6d61722d77696b6970656469612d66616b6572)](https://packagist.org/packages/kaungkhantjc/myanmar-wikipedia-faker)[![Total Downloads](https://camo.githubusercontent.com/f7c742dc36e77d9390ada8e48fe631cfed96de6fc7a1fa7d8c1bf87ddf5f59c2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b61756e676b68616e746a632f6d79616e6d61722d77696b6970656469612d66616b6572)](https://packagist.org/packages/kaungkhantjc/myanmar-wikipedia-faker)

A high-performance Myanmar (Burmese) text generator. Requires PHP 8.4+. It provides a Faker provider built from the [DatarrX Myanmar Wikipedia](https://huggingface.co/datasets/DatarrX/myanmar-Wikipedia) dataset and uses a forward-only traversal algorithm for O (1) memory usage.

### Quick install

[](#quick-install)

```
composer require kaungkhantjc/myanmar-wikipedia-faker
```

### Usage (plain PHP)

[](#usage-plain-php)

```
$faker = \Faker\Factory::create();
$faker->addProvider(new \Kaungkhantjc\Faker\MyanmarWikipediaTextProvider($faker));
echo $faker->myanmarWikipediaText();
```

### Laravel integration

[](#laravel-integration)

- Install package:

    ```
    composer require kaungkhantjc/myanmar-wikipedia-faker --dev
    ```
- Create and register the provider for Laravel's Faker globally.

    ```
    # In Laravel 13, providers are automatically registered to the bootstrap/providers.php when created via the Artisan CLI
    php artisan make:provider FakerServiceProvider
    ```
- Add the following code to the `register` method of the newly created `FakerServiceProvider`:

    ```
    if (!app()->environment(['local', 'testing'])) return;
    $this->app->afterResolving(\Faker\Generator::class, function (\Faker\Generator $faker) {
        $faker->addProvider(new \Kaungkhantjc\Faker\MyanmarWikipediaTextProvider($faker));
    });;
    ```

After this, `fake()->myanmarWikipediaText()` will be available in tinker, factories, seeders and tests.

### Building &amp; Decompressing Dataset (for contributors)

[](#building--decompressing-dataset-for-contributors)

If you clone this repository directly from GitHub, run the PHP extraction command to decompress the dataset:

```
composer extract
```

#### Rebuilding Dataset from Source (Python)

[](#rebuilding-dataset-from-source-python)

If you need to rebuild the .gz dataset from Hugging Face:

1. Create and activate a virtual environment:

    ```
     python -m venv .venv
     source .venv/bin/activate # On Windows: .venv\Scripts\Activate.ps1
    ```
2. Install dependencies and run build script:

    ```
    pip install pandas pyarrow fastparquet
    python scripts/build_dataset.py
    ```

When finished, deactivate with `deactivate`.

The script downloads the dataset from Hugging Face and prepares `resources/myanmar_sentences.txt` and `resources/line_count.txt`.

### Testing

[](#testing)

```
composer test
```

### Credits

[](#credits)

Dataset: Myanmar Wikipedia Dataset (20260501) by Khant Sint Heinn ([DatarrX](https://huggingface.co/datasets/DatarrX)) — released under CC-BY-4.0.

### License

[](#license)

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance100

Actively maintained with recent releases

Popularity3

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

Total

2

Last Release

0d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a1549c133bd569a0a9b04f27be6442d38a47f234b333942427143226c7f4d68?d=identicon)[kaungkhantjc](/maintainers/kaungkhantjc)

---

Top Contributors

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

---

Tags

fakermyanmar-languagemyanmar-textmyanmar-text-generator

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/kaungkhantjc-myanmar-wikipedia-faker/health.svg)

```
[![Health](https://phpackages.com/badges/kaungkhantjc-myanmar-wikipedia-faker/health.svg)](https://phpackages.com/packages/kaungkhantjc-myanmar-wikipedia-faker)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k6.0M760](/packages/sylius-sylius)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k15.0M68](/packages/knuckleswtf-scribe)[verbb/formie

The most user-friendly forms plugin for Craft.

101400.6k74](/packages/verbb-formie)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

54686.7k23](/packages/solspace-craft-freeform)[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k16.4k92](/packages/elgg-elgg)[blackfire/player

A powerful web crawler and web scraper with Blackfire support

49617.1k](/packages/blackfire-player)

PHPackages © 2026

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