PHP Package: php-http/promise

Efficient PHP library for handling asynchronous operations with promises and callbacks, providing reliable response handling and error management.

Current Version: 1.3.1
Last Updated: 2024-03-15
PHP Requirement: ^7.1 || ^8.0
Dependencies:
guzzle/promises
php-fig/http-client
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

php-http/promise is a highly efficient PHP library designed for managing asynchronous operations through promises and callbacks. It ensures reliable response handling and effective error management, enhancing the performance of your PHP applications. With a robust set of features, this library simplifies complex asynchronous tasks, making it a valuable tool for PHP developers.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 1.3.1

Download Download v1.3.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/promise/1.3.1/loader.php';
require_once 'libs/guzzle/promises/2.2.0/loader.php';
require_once 'libs/php-fig/http-client/1.0.3/loader.php';

use Http\Promise\Promise;
use GuzzleHttp\Promise\Promise;
use Psr\Http\Client\ClientInterface;

$obj = new Promise();
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.