PHPackages                             parf/spartan-test - 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. parf/spartan-test

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

parf/spartan-test
=================

PHP 8 Unit and Web Testing Utility

3.3.18(1w ago)833MITPHPPHP &gt;=8.0

Since Apr 1Pushed 1w ago3 watchersCompare

[ Source](https://github.com/parf/spartan-test)[ Packagist](https://packagist.org/packages/parf/spartan-test)[ RSS](/packages/parf-spartan-test/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (37)Used By (0)

SPARTAN-TEST
============

[](#spartan-test)

Minimalistic PHP 7, PHP 8 Unit Testing Framework / Web Testing Framework

Write your tests in style:

- Very simple tests
- Run as an executable file
- Both unit and web testing
- PHP code, minimal learning curve
- Less cruft, more fun

- [Syntax](https://github.com/parf/spartan-test/blob/main/Syntax.md)
- [Web Tests](https://github.com/parf/spartan-test/blob/main/web-tests.md)
- [Config](https://github.com/parf/spartan-test/blob/main/Config.md)

- Examples

    - [Basic test example](https://github.com/parf/spartan-test/blob/main/examples/1-basics/1-first-test.stest)
    - (advanced) [Custom comparison methods](https://github.dev/parf/spartan-test/blob/main/examples/1-basics/special-tests.stest)
    - [Web-tests](/web-tests.md)
- To see more help just run `stest --help` or `stest-all --help`

Composer / Laravel Autoload Integration
=======================================

[](#composer--laravel-autoload-integration)

Upon start spartan test includes `bootstrap/autoload.php` or `vendor/autoload` or `init.php` file from current or parent directories

You can specify your custom autoload file using "--init=$path\_filename" option or via `stest.config` file

INSTALL (GIT)
-------------

[](#install-git)

```
mkdir -p ~/src ~/bin
git clone https://github.com/parf/spartan-test.git ~/src/spartan-test
ln -s ~/src/spartan-test/stest ~/bin

```

INSTALL (COMPOSER)
------------------

[](#install-composer)

```
composer require parf/spartan-test
ln -s ./vendor/bin/stest ~/bin
ln -s ./vendor/bin/stest-all ~/bin

```

- `stest` provides testing framework
- `stest-all` runs all or specific tests in parallel (gnu-parallel utility required)

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance98

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 97% 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 ~47 days

Recently: every ~2 days

Total

34

Last Release

9d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1048670?v=4)[Sergey Parf](/maintainers/parf)[@parf](https://github.com/parf)

---

Top Contributors

[![parf](https://avatars.githubusercontent.com/u/1048670?v=4)](https://github.com/parf "parf (130 commits)")[![mevl](https://avatars.githubusercontent.com/u/12844383?v=4)](https://github.com/mevl "mevl (2 commits)")[![glyebov](https://avatars.githubusercontent.com/u/1194182?v=4)](https://github.com/glyebov "glyebov (1 commits)")[![jusunlee](https://avatars.githubusercontent.com/u/371433?v=4)](https://github.com/jusunlee "jusunlee (1 commits)")

---

Tags

phpspartan-testtest-frameworkunit-testingutilityunit testweb test

### Embed Badge

![Health badge](/badges/parf-spartan-test/health.svg)

```
[![Health](https://phpackages.com/badges/parf-spartan-test/health.svg)](https://phpackages.com/packages/parf-spartan-test)
```

###  Alternatives

[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k430.4M1.7k](/packages/nette-utils)[danielstjules/stringy

A string manipulation library with multibyte support

2.4k26.3M192](/packages/danielstjules-stringy)[voku/arrayy

Array manipulation library for PHP, called Arrayy!

4915.7M18](/packages/voku-arrayy)[mage2tv/magento-cache-clean

This package has been migrated to mage-os/magento-cache-clean. Please switch over at your convenience.

5442.1M3](/packages/mage2tv-magento-cache-clean)[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

3014.6M26](/packages/vaimo-composer-patches)[lodash-php/lodash-php

A port of Lodash to PHP

528756.6k5](/packages/lodash-php-lodash-php)

PHPackages © 2026

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