{"id":92432,"library":"amphp-sync","title":"Amp Sync","description":"Non-blocking synchronization primitives for PHP based on Amp and Revolt.","status":"active","version":"2.3.0","language":"php","source_language":null,"source_url":"https://github.com/amphp/sync","tags":["async","synchronization","amphp","non-blocking"],"install":[{"cmd":"composer require amphp/sync","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"Semaphore","correct":"use Amp\\Sync\\Semaphore;"}],"quickstart":{"code":"<?php\n\nuse Amp\\Sync\\Semaphore;\n\n$semaphore = new Semaphore(1);\n$lock = $semaphore->acquire();\n// Critical section\n$lock->release();","lang":"php","description":"Create a semaphore to synchronize access to a resource."},"warnings":[{"fix":"Install amphp/amp and revolt/event-loop via Composer.","message":"Requires the amphp/amp and revolt/event-loop packages to be installed.","severity":"gotcha","affected_versions":">=2.0.0"}],"env_vars":null,"search_vec":"'amp':1,12 'amphp':17 'async':15 'base':10 'block':5,20 'non':4,19 'non-block':3,18 'php':9 'primit':7 'revolt':14 'sync':2 'synchron':6,16","created_at":"2026-06-19T09:32:24.710112+00:00","updated_at":"2026-06-19T09:32:24.710112+00:00","problems":[],"ecosystem":"packagist","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/amphp/sync","github":"https://github.com/amphp/sync","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["async","networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}