PHPackages                             uniter1/uniter-laravel - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. uniter1/uniter-laravel

ActiveLibrary[Testing &amp; Quality](/categories/testing)

uniter1/uniter-laravel
======================

v1.9(3y ago)046MITPHPPHP ^7.4|^8.0

Since Jan 16Pushed 3y ago1 watchersCompare

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

READMEChangelog (6)Dependencies (5)Versions (8)Used By (0)

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

[](#short-instruction)

composer require uniter1/uniter1-laravel php artisan uniter1:register {email} {password}

// edit .env file // UNITER1\_ACCESS\_TOKEN= token from your mail // UNITER1\_PROJECT\_DIRECTORY= path to project root

php artisan uniter1:generate {filePath}

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

[](#installation)

You can install the package via composer:

```
composer require uniter1/uniter1-laravel
```

Testing
-------

[](#testing)

To run tests in package, you need to add "PhpUniter\\PackageLaravel\\Tests\\": "vendor/uniter1/uniter1-laravel/tests" to "autoload-dev": "psr-4" section of your composer.json

Usage
-----

[](#usage)

### User registration:

[](#user-registration)

```
php artisan 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 .env file as UNITER1\_ACCESS\_TOKEN. After that you can send test generation queries.

### Package settings:

[](#package-settings)

First, you need to set config values to you .env file:

```
UNITER1_ACCESS_TOKEN=***
```

Access token sent after registration to your email.

Other options you may remain as defaults. Check that unit tests directory (defaults tests/Unit) exists and is writable.

```
UNITER1_BASE_URL=https://uniter1.tech
```

This is web address for our service. Use

```
UNITER1_OBFUSCATE=true
```

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

```
UNITER1_UNIT_TEST_BASE_CLASS=PHPUnit\Framework\TestCase
```

Base framework for yours test class.

```
UNITER1_UNIT_TESTS_DIRECTORY=tests/Unit
```

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

```
UNITER1_INSPECTOR_MODE=true
```

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

### Test generation

[](#test-generation)

```
php artisan uniter1:generate {filePath} [{--overwrite-one-method=yours_method_name}]
```

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 UNITER1\_UNIT\_TESTS\_DIRECTORY - 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.

overwrite-one-method option 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.

### Testing

[](#testing-1)

You find package tests in package folder tests.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [PhpUniter](https://github.com/uniter1)

v1.9
----

[](#v19)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.8% 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 ~3 days

Total

7

Last Release

1196d ago

### 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 (133 commits)")[![eduard-fomin](https://avatars.githubusercontent.com/u/1915016?v=4)](https://github.com/eduard-fomin "eduard-fomin (1 commits)")[![php-uniter](https://avatars.githubusercontent.com/u/94779487?v=4)](https://github.com/php-uniter "php-uniter (1 commits)")[![uniter1-dev](https://avatars.githubusercontent.com/u/122783040?v=4)](https://github.com/uniter1-dev "uniter1-dev (1 commits)")

---

Tags

uniter1uniter-laravel

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15511.5M30](/packages/magento-magento2-functional-testing-framework)[ikwattro/guzzle-stereo

Guzzle Recorder for recording Request/Responses and replay them back in a Mock

782.6k1](/packages/ikwattro-guzzle-stereo)

PHPackages © 2026

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