{"id":90023,"library":"eloquent-phony","title":"Phony","description":"Mocks, stubs, and spies for PHP.","status":"active","version":"5.0.2","language":"php","source_language":null,"source_url":"https://github.com/eloquent/phony","tags":["testing","mock","stub","spy","php"],"install":[{"cmd":"composer require eloquent/phony","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"Phony","correct":"use Eloquent\\Phony\\Phony;"}],"quickstart":{"code":"use Eloquent\\Phony\\Phony;\n\n$mock = Phony::mock('SomeClass');\n$mock->someMethod->returns('value');","lang":"php","description":"Create a mock object with a stubbed method."},"warnings":[],"env_vars":null,"search_vec":"'mock':2,9 'phoni':1 'php':7,12 'spi':5,11 'stub':3,10 'test':8","created_at":"2026-06-19T08:56:35.790015+00:00","updated_at":"2026-06-19T08:56:35.790015+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://eloquent-software.com/phony/","github":"https://github.com/eloquent/phony","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}}