{"id":95266,"library":"pact-foundation-pact-php","title":"Pact PHP","description":"Enables consumer driven contract testing, following the PACT foundation principles.","status":"active","version":"10.2.1","language":"php","source_language":null,"source_url":"https://github.com/pact-foundation/pact-php","tags":["testing","contract-testing","pact","consumer-driven"],"install":[{"cmd":"composer require pact-foundation/pact-php","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"InteractionBuilder","correct":"use PhpPact\\Consumer\\InteractionBuilder;"}],"quickstart":{"code":"use PhpPact\\Consumer\\InteractionBuilder;\n\n$builder = new InteractionBuilder();\n$builder->given('some state')\n    ->uponReceiving('a request')\n    ->withRequest('GET', '/path')\n    ->willRespondWith(200, ['Content-Type' => 'application/json']);","lang":"php","description":"Sets up a consumer-driven contract test interaction."},"warnings":[],"env_vars":null,"search_vec":"'consum':4,19 'consumer-driven':18 'contract':6,15 'contract-test':14 'driven':5,20 'enabl':3 'follow':8 'foundat':11 'pact':1,10,17 'php':2 'principl':12 'test':7,13,16","created_at":"2026-06-19T10:25:37.710070+00:00","updated_at":"2026-06-19T10:25:37.710070+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/pact-foundation/pact-php","github":"https://github.com/pact-foundation/pact-php","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"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}}