PHP Package: php-http/mock-client

A versatile PHP library for mocking HTTP requests and responses for testing purposes.

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

Package Description

Mock-Client is a powerful PHP library designed to facilitate the mocking of HTTP requests and responses in testing scenarios. With a user-friendly interface and robust features, it allows developers to simulate various HTTP interactions to ensure the reliability and efficiency of their applications.

🔗 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/autoload.php';

use PhpHttp\MockClient\MockClient;
use PHPUnit\Framework\TestCase;


$obj = new PhpHttp\MockClient\MockClient();
echo "✅ Example created successfully.";

?>

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