PHPackages                             uniter1/uniter-yii - 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. uniter1/uniter-yii

ActiveLibrary

uniter1/uniter-yii
==================

v1.0.5(3y ago)010MITPHPPHP ^7.4|^8.0

Since Dec 5Pushed 3y ago1 watchersCompare

[ Source](https://github.com/uniter1-dev/uniter-yii)[ Packagist](https://packagist.org/packages/uniter1/uniter-yii)[ Docs](https://github.com/uniter1-dev/uniter-yii.git)[ RSS](/packages/uniter1-uniter-yii/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (5)Versions (12)Used By (0)

Yii2 commands for remote requests to Uniter1 test generation service

This package provides 2 commands: first for registration, second for test generation request.

Short instruction
-----------------

[](#short-instruction)

composer require uniter1/uniter-yii

// edit config/console.php

'controllerMap' =&gt; \[ ... 'uniter1' =&gt; \[ 'class' =&gt; 'Uniter1\\UniterYii\\Uniter1Yii', 'config' =&gt; \[ 'accessToken' =&gt; your requested token, 'basePath' =&gt; dirname(**DIR**), 'projectDirectory' =&gt; dirname(**DIR**), \], \]

// get registered token php yii uniter1/register {email} {password}

read email and put token to config/console.php

// generate test for your php class file php yii uniter1/generate path/to/file \[methodToOverwrite\]

result should be written to yours unitTestsDirectory (see in config/console.php)

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

[](#installation)

You can install the package via composer:

```
composer require uniter1/uniter-yii
```

Testing
-------

[](#testing)

Usage
-----

[](#usage)

### User registration:

[](#user-registration)

```
php yii uniter1/register {email} {password}
```

User will be registered, and access token will be sent to your email. You need to put that token to yours config/console.php file as 'accessToken'. After that you can send test generation queries.

### Package settings:

[](#package-settings)

Other options (in uniter/config.php) you may remain as defaults. You can overwrite them in config/console.php. Check that unit tests directory (defaults storage/tests/Unit) exists and is writable.

```
'baseUrl' => https://uniter1.tech
```

This is web address for our service. Use

```
'obfuscate' => true
```

Obfuscation option. Set it to false if you need no obfuscation for you code.

```
'unitTestBaseClass' => PHPUnit\Framework\TestCase
```

Base framework for yours test class.

```
'unitTestsDirectory' => tests/Unit
```

Base directory to save generated test classes. Check that directory exists and is writable.

```
'inspectorMode'       => true,
```

if true, private and protected methods will be tested. If false, none.

### Test generation

[](#test-generation)

```
php yii uniter1/generate {filePath} [methodToOverwrite]
```

Your class you want to test will be read from {filePath}, obfuscated if you did not turn obfuscation off, sent to our service. There will be created some phpunit test file to test different variants of yours class methods. The result will be deobfuscated and saved to 'unitTestsDirectory'- to some nested folder according to class namespace.

Open it, read it and use to test yours class.

Generated class, possibly, will not be completed test - read comments before each generated test method.

methodToOverwrite optional parameter allows you to replace only those methods that test one of the methods of the source class in the previously generated test class during generation. Be careful when using it - it is necessary that the previously generated test lies at the same address, and also that no changes are made to the class under test, except for the method that we specified with this option.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Total

11

Last Release

1195d ago

Major Versions

v0.0.5 → v1.0.02023-01-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/cc0b6fc7d01d280547b6efba9e9489c1d3432a23e143e251dc11bea5fccedb0d?d=identicon)[uniter1-dev](/maintainers/uniter1-dev)

---

Top Contributors

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

---

Tags

uniter1uniter-yii

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/uniter1-uniter-yii/health.svg)

```
[![Health](https://phpackages.com/badges/uniter1-uniter-yii/health.svg)](https://phpackages.com/packages/uniter1-uniter-yii)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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