PHPackages                             php-platform/restful-unit - 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. php-platform/restful-unit

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

php-platform/restful-unit
=========================

v0.1.4(8y ago)02051Apache-2.0PHPPHP &gt;=5.5

Since Mar 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/PHPPlatform/restful-unit)[ Packagist](https://packagist.org/packages/php-platform/restful-unit)[ Docs](https://github.com/PHPPlatform/persist-unit)[ RSS](/packages/php-platform-restful-unit/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)Dependencies (3)Versions (7)Used By (1)

PHP Platform RestFul APIs Unit Testing
======================================

[](#php-platform-restful-apis-unit-testing)

This package provides a utilities to unit test Restful Web Services from [PHPPlatfrom/restful](https://github.com/PHPPlatform/restful)

How to Use
----------

[](#how-to-use)

- **Step 1**

refer to `resources/autoload.php` from this package in the phpunit.xml

```

```

- **Step 2**

invoke setupMethodds of `PhpPlatform\Tests\RestfulUnit\ServiceTestCase` from the TestCase's setup methods

```
class MyRestFulTest extends TestCase {
    static function setUpBeforeClass(){
        parent::setUpBeforeClass();
        \PhpPlatform\Tests\RestfulUnit\ServiceTestCase::setUpBeforeClass();
    }

    function setUp(){
        parent::setUp();
        \PhpPlatform\Tests\RestfulUnit\ServiceTestCase::setUp();
    }

    static function tearDownAfterClass(){
        parent::tearDownAfterClass();
        \PhpPlatform\Tests\RestfulUnit\ServiceTestCase::tearDownAfterClass();
    }

    function tearDown(){
        parent::tearDown();
        \PhpPlatform\Tests\RestfulUnit\ServiceTestCase::tearDown();
    }
}
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

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

Total

6

Last Release

2952d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/92306cd4ec1342daeba6fb633880eb9907cdd022874ae39be11ab7ae274171c7?d=identicon)[Raaghu](/maintainers/Raaghu)

---

Top Contributors

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

---

Tags

rest-apiunit-testingphpunitrestunit testingunit testrestfulphp-platformwebservice test

### Embed Badge

![Health badge](/badges/php-platform-restful-unit/health.svg)

```
[![Health](https://phpackages.com/badges/php-platform-restful-unit/health.svg)](https://phpackages.com/packages/php-platform-restful-unit)
```

###  Alternatives

[kenjis/ci-phpunit-test

An easier way to use PHPUnit with CodeIgniter 3.x

5861.2M3](/packages/kenjis-ci-phpunit-test)[donatj/mock-webserver

Simple mock web server for unit testing

1382.5M80](/packages/donatj-mock-webserver)[yoast/wp-test-utils

PHPUnit cross-version compatibility layer for testing plugins and themes build for WordPress

632.3M52](/packages/yoast-wp-test-utils)[fiunchinho/phpunit-randomizer

Execute your test cases in random order, so you can check if they have hidden dependencies

50752.0k18](/packages/fiunchinho-phpunit-randomizer)[elliotchance/concise

Concise is test framework for using plain English and minimal code, built on PHPUnit.

45223.8k4](/packages/elliotchance-concise)[seec/phpunit-consecutive-params

Drop-in Trait to use removed ConsecutiveParams from PhpUnit

18672.5k6](/packages/seec-phpunit-consecutive-params)

PHPackages © 2026

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