{"meta":{"name":"FindSoftware","page":"https://findsoftware.frbit.cloud/mockery/","markdown":"https://findsoftware.frbit.cloud/mockery.md","license":"https://creativecommons.org/licenses/by/4.0/","attribution":"FindSoftware, CC BY 4.0","note":"Attributes are recorded, never scored. An absent field means unknown, never zero and never bad."},"record":{"id":"mockery","name":"Mockery","urls":{"home":"https://docs.mockery.io/en/stable/","repository":"https://github.com/mockery/mockery","docs":"https://docs.mockery.io/en/stable/"},"category":["testing"],"description":"PHP mock object framework for creating test doubles with a readable API in unit tests run with PHPUnit, PHPSpec or another testing framework.","maintainer":"Pádraic Brady","firstRelease":2010,"hosting":null,"language":"php","runtime":["php"],"runtimeMin":"php 7.3","contentStore":null,"databases":null,"adminUi":null,"headlessApi":null,"templating":null,"i18n":null,"renderingModes":null,"installMethod":"composer, git","licenseModel":"open-source","license":"BSD-3-Clause","currentMajor":"1","latestReleaseDate":"2026-08-19T00:00:00.000Z","githubStargazers":10722,"contributors":200,"packagistDownloads":595145420,"npmWeeklyDownloads":null,"dependentRepos":482492,"dependentPackages":22331,"checkedAt":"2026-11-16T00:00:00.000Z","addedAt":"2026-11-16T00:00:00.000Z","sources":[{"field":"urls","url":"https://docs.mockery.io/en/stable/","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"urls","url":"https://api.github.com/repos/mockery/mockery","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"urls","url":"https://github.com/mockery/mockery/blob/1.6.x/README.md","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"firstRelease","url":"https://api.github.com/repos/mockery/mockery/commits/0.6.0","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"maintainer","url":"https://github.com/mockery/mockery/blob/1.6.x/LICENSE","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"language","url":"https://api.github.com/repos/mockery/mockery","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"category","url":"https://docs.mockery.io/en/stable/","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"runtime","url":"https://docs.mockery.io/en/stable/","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"runtimeMin","url":"https://repo.packagist.org/p2/mockery/mockery.json","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"installMethod","url":"https://github.com/mockery/mockery/blob/1.6.x/README.md","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"installMethod","url":"https://docs.mockery.io/en/stable/getting_started/installation.html","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"license","url":"https://github.com/mockery/mockery/blob/1.6.x/LICENSE","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"licenseModel","url":"https://api.github.com/repos/mockery/mockery","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"currentMajor","url":"https://api.github.com/repos/mockery/mockery/releases/tags/1.6.15","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"latestReleaseDate","url":"https://api.github.com/repos/mockery/mockery/releases/tags/1.6.15","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"githubStargazers","url":"https://api.github.com/repos/mockery/mockery","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"contributors","url":"https://api.github.com/repos/mockery/mockery/contributors?per_page=1","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"packagistDownloads","url":"https://packagist.org/packages/mockery/mockery.json","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"dependentPackages","url":"https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/mockery%2Fmockery","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"dependentRepos","url":"https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/mockery%2Fmockery","checkedAt":"2026-11-16T00:00:00.000Z"}],"status":"active","ai":"authored"},"prose":"Mockery is a PHP mock object framework for creating test doubles in unit tests. Its documentation describes it as usable with PHPUnit, PHPSpec or any other testing framework. It is installed as a development dependency with Composer, or by cloning its repository. The project describes itself as a drop-in alternative to PHPUnit's phpunit-mock-objects library and says it can run alongside that library.\n\n## Worth knowing\n\nThe README says some of Mockery's internals are private and may change at any time, so a class that is not final, or a method that is not private, is not necessarily part of the API the versioning scheme covers."}