{"id":95325,"library":"amphp-mysql","title":"Amp MySQL","description":"Asynchronous MySQL client for PHP based on Amp.","status":"active","version":"3.1.1","language":"php","source_language":null,"source_url":"https://github.com/amphp/mysql","tags":["async","mysql","database","amphp"],"install":[{"cmd":"composer require amphp/mysql","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"Connection","correct":"use Amp\\Mysql\\Connection;"}],"quickstart":{"code":"use Amp\\Mysql\\Connection;\n\n$connection = Connection::connect('host=localhost;user=root;password=secret;dbname=test');\n$result = yield $connection->query('SELECT * FROM users');\nwhile (yield $result->advance()) {\n    $row = $result->getCurrent();\n    echo $row['name'];\n}","lang":"php","description":"Execute an asynchronous MySQL query"},"warnings":[{"fix":"Wrap usage in Amp\\Loop::run() or use a coroutine.","message":"Requires the Amp event loop to run; not compatible with synchronous code.","severity":"breaking","affected_versions":">=3.0.0"}],"env_vars":null,"search_vec":"'amp':1,10 'amphp':14 'async':11 'asynchron':3 'base':8 'client':5 'databas':13 'mysql':2,4,12 'php':7","created_at":"2026-06-19T10:27:13.645353+00:00","updated_at":"2026-06-19T10:27:13.645353+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/mysql","github":"https://github.com/amphp/mysql","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["database","async"],"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}}