PHPackages                             mpstyle/rastris - 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. mpstyle/rastris

ActiveLibrary

mpstyle/rastris
===============

1.0.0(9y ago)019LGPL v3PHP

Since Dec 19Pushed 9y agoCompare

[ Source](https://github.com/MpStyle/rastris)[ Packagist](https://packagist.org/packages/mpstyle/rastris)[ RSS](/packages/mpstyle-rastris/feed)WikiDiscussions master Synced yesterday

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

Rastris
=======

[](#rastris)

RAndom STRIngS generator.

[![Build Status](https://camo.githubusercontent.com/355e686c4159ccabebe87665ce59a42711c751b9aafa6d85ebc122e027c8347f/68747470733a2f2f7472617669732d63692e6f72672f4d705374796c652f726173747269732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/MpStyle/rastris)

How to install
--------------

[](#how-to-install)

Simply add a dependency on *mpstyle/rastris* to your project's *composer.json* file if you use Composer to manage the dependencies of your project. Here is a minimal example of a composer.json file that just defines a development-time dependency on MpStyle Rastris:

```
{
    "require-dev": {
        "mpstyle/rastris": "1.*.*"
    }
}
```

or using console:

```
composer require "mpstyle/rastris=1.*.*"

```

How to use
----------

[](#how-to-use)

Generate a random string (the length is 10 characters) using this subset of chars *|!"£$%&amp;/()=?^+§°ç@-.,;\_&lt;&gt;€\[\]{}abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ*

```
$generator = new RandomCharsGenerator();
$str = $generator->get(10);
```

Generate a random string (the length is 10 characters) using this subset of chars *abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ*

```
$generator = new RandomCharsGenerator();
$str = $generator->getAlphas(10);
```

Generate a random string (the length is 10 characters) using this subset of chars *ABCDEFGHIJKLMNOPQRSTUVWXYZ*

```
$generator = new RandomCharsGenerator();
$str = $generator->getUpperAlphas(10);
```

Generate a random string (the length is 10 characters) using this subset of chars *abcdefghijklmnopqrstuvwxyz*

```
$generator = new RandomCharsGenerator();
$str = $generator->getLowerAlphas(10);
```

Generate a random string (the length is 10 characters) using this subset of chars *1234567890*

```
$generator = new RandomCharsGenerator();
$str = $generator->getDigits(10);
```

Run tests
---------

[](#run-tests)

In the root of the project run:

```
composer test

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

3480d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/527046?v=4)[Michele Pagnin](/maintainers/MpStyle)[@MpStyle](https://github.com/MpStyle)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mpstyle-rastris/health.svg)

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

PHPackages © 2026

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