PHPackages                             xpat/api-test-library - 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. xpat/api-test-library

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

xpat/api-test-library
=====================

PHP library for testing json api endpoints.

v1.0.6(1y ago)010MITPHPPHP &gt;=8.3

Since Dec 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/xpat23/api-test-library)[ Packagist](https://packagist.org/packages/xpat/api-test-library)[ RSS](/packages/xpat-api-test-library/feed)WikiDiscussions main Synced 1mo ago

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

API Test Library
================

[](#api-test-library)

Description
-----------

[](#description)

This PHP library is designed for testing JSON API endpoints.

Requirements
------------

[](#requirements)

- PHP &gt;= 8.3
- ext-curl
- Composer

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

[](#installation)

To install the library, use Composer:

```
composer require xpat/api-test-library
```

Usage
-----

[](#usage)

To run the API tests, use the provided script. You can specify the path to the test cases as an argument. If no path is provided, it defaults to the current directory. In the example below we are using symfony dependency injection container to load the services.yaml file.

```
#!/usr/bin/env php
