PHP Package: amphp/sync

Asynchronous PHP library for synchronization tasks, providing efficient event-driven programming capabilities.

Current Version: 2.3.0
Last Updated: 2024-08-04
PHP Requirement: >=7.1
Dependencies: amphp/amp, amphp/promisor
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

amphp/sync is a powerful PHP library that enables developers to perform synchronous tasks in an asynchronous manner, enhancing performance and scalability. It offers a comprehensive set of features for efficient event-driven programming, making it an essential tool for modern web applications.

🔗 View on GitHub

Download Latest Version: 2.3.0

Download Download v2.3.0

Code Integration Example

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

<?php

// Example from PHPlibraries.com
require_once 'libs/amphp/sync/2.3.0/autoload.php';

use Amp\Parallel\Sync;
use Amp\Parallel\Sync\Channel;
use Amp\Parallel\Sync\Exception;
use Amp\Parallel\Sync\LocalSemaphore;
use Amp\Parallel\Sync\Semaphore;
use Amp\Parallel\Sync\SharedMemory;
use Amp\Parallel\Sync\SharedMemoryException;
use Amp\Parallel\Sync\SharedMemoryKey;
use Amp\Parallel\Sync\SharedMemoryKeyException;
use Amp\Parallel\Sync\SharedMemoryPool;
use Amp\Parallel\Sync\SharedMemoryPoolException;
use Amp\Parallel\Sync\SharedMemoryStack;
use Amp\Parallel\Sync\SharedMemoryStackException;
use Amp\Parallel\Sync\Sync;


$obj = new Amp\Parallel\Sync();
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.