PHP Package: php-http/mock-client

Efficient PHP mock client library for HTTP requests and responses testing

Current Version: 1.6.1
Last Updated: 2024-10-31
PHP Requirement: ^7.1 || ^8.0
Dependencies:
phpunit/phpunit
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

The PHP Mock Client library is a powerful tool designed to streamline HTTP requests and responses testing processes. It provides a comprehensive suite of functionalities that make testing seamless and efficient. With detailed request and response handling, this library ensures accurate testing outcomes, improving overall code quality and reliability.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 1.6.1

Download Download v1.6.1

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/php-http/mock-client/1.6.1/loader.php';
require_once 'libs/sebastianbergmann/phpunit/12.2.2/loader.php';

use Http\Mock\Client\MockClient;

$obj = new MockClient();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.