# Kahlan

PHP unit and BDD test framework that stubs and monkey patches code directly.


Source: https://findsoftware.frbit.cloud/kahlan/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- home: https://kahlan.github.io/docs/
- repository: https://github.com/kahlan/kahlan
- docs: https://kahlan.github.io/docs/getting-started.html

### Identity

- status: active
- maintainer: CrysaLEAD
- maintainerType: unknown
- parent: unknown
- firstRelease: 2015
- hqCountry: unknown

### Kind

- category: testing
- hosting: not applicable
- language: php
- runtime: php
- runtimeMin: php 7.4
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: unknown
- renderingModes: not applicable
- installMethod: Composer

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 6
- latestReleaseDate: 2026-10-13

### Adoption

- githubStargazers: 1147
- packagistDownloads: 1336138
- npmWeeklyDownloads: not applicable
- contributors: 35
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: unknown
- dependentPackages: unknown

### Sources

- urls: https://api.github.com/repos/kahlan/kahlan (read 2026-11-16)
- urls: https://api.github.com/repos/kahlan/kahlan (read 2026-11-16)
- urls: https://kahlan.github.io/docs/getting-started.html (read 2026-11-16)
- maintainer: https://github.com/kahlan/kahlan/blob/6.1.3/LICENSE.txt (read 2026-11-16)
- language: https://api.github.com/repos/kahlan/kahlan (read 2026-11-16)
- category: https://github.com/kahlan/kahlan/blob/dev/README.md (read 2026-11-16)
- runtime: https://github.com/kahlan/kahlan/blob/6.1.3/composer.json (read 2026-11-16)
- runtimeMin: https://github.com/kahlan/kahlan/blob/6.1.3/composer.json (read 2026-11-16)
- installMethod: https://kahlan.github.io/docs/getting-started.html (read 2026-11-16)
- license: https://github.com/kahlan/kahlan/blob/6.1.3/LICENSE.txt (read 2026-11-16)
- currentMajor: https://api.github.com/repos/kahlan/kahlan/releases (read 2026-11-16)
- latestReleaseDate: https://api.github.com/repos/kahlan/kahlan/releases/latest (read 2026-11-16)
- firstRelease: https://api.github.com/repos/kahlan/kahlan/commits/1.0.0 (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/kahlan/kahlan (read 2026-11-16)
- contributors: https://api.github.com/repos/kahlan/kahlan/contributors?per_page=1 (read 2026-11-16)
- packagistDownloads: https://packagist.org/packages/kahlan/kahlan.json (read 2026-11-16)

## Notes

Kahlan is a test framework for PHP with a describe-it syntax in the style of RSpec and JSpec. It stubs and monkey patches code directly, and the project says this works without any required PECL extensions.

## Worth knowing

Code coverage analysis needs phpdbg or Xdebug. The documentation site is older than the current release and still gives an earlier PHP requirement, so the requirement that applies comes from the package manifest of the latest release.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
