PHPackages                             dastanaron/codegenerator - 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. dastanaron/codegenerator

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

dastanaron/codegenerator
========================

This is short codegenerator. Can be used for various purposes

1.0.1(8y ago)018GPL-3.0+PHP

Since Nov 3Pushed 8y agoCompare

[ Source](https://github.com/dastanaron/codegenerator)[ Packagist](https://packagist.org/packages/dastanaron/codegenerator)[ RSS](/packages/dastanaron-codegenerator/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

short codegenerator
===================

[](#short-codegenerator)

This is short codegenerator. Can be used for various purposes

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist dastanaron/codegenerator "*"

```

or add

```
"dastanaron/codegenerator": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

To use, you must create an instance of the class and call the method **generate()**

```
use dastanaron\extension\CodeGenerator;

$codegen = new CodeGenerator();

echo $codegen->generate();
```

To adjust the length of the code, you need to use the length property.

Property $length default value = 6;

```
use dastanaron\extension\CodeGenerator;

$codegen = new CodeGenerator();

$codegen->length = 9;

echo $codegen->generate();
```

The symbols for code generation are found in the properties **$lat\_symbols** and **$num\_symbols**.

This properties take values in the form of arrays.

So you can specify specific symbols to generate.

```
use dastanaron\extension\CodeGenerator;

$codegen = new CodeGenerator();

$codegen->length = 9;

$codegen->lat_symbols = ['a', 'b', 'c', 'd'];

$codegen->num_symbols = [1, 2, 3, 4];

echo $codegen->generate();
```

For the default properties, see the class code.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity64

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

Every ~0 days

Total

2

Last Release

3115d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25330618?v=4)[Github](/maintainers/dastanaron)[@dastanaron](https://github.com/dastanaron)

---

Top Contributors

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

---

Tags

code generatorextension all freimwork

### Embed Badge

![Health badge](/badges/dastanaron-codegenerator/health.svg)

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

###  Alternatives

[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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