Kahlan
PHP unit and BDD test framework that stubs and monkey patches code directly.
kahlan.github.io/docs/repositorydocs
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.
Sources
- 2026-11-16: links, Written in, GitHub stars
api.github.com/repos/kahlan/kahlan - 2026-11-16: links, Install with
kahlan.github.io/docs/getting-started.html - 2026-11-16: Maintainer, License
github.com/kahlan/kahlan/blob/6.1.3/LICENSE.txt - 2026-11-16: Categories
github.com/kahlan/kahlan/blob/dev/README.md - 2026-11-16: Runtime, Minimum runtime
github.com/kahlan/kahlan/blob/6.1.3/composer.json - 2026-11-16: Current major version
api.github.com/repos/kahlan/kahlan/releases - 2026-11-16: Last release
api.github.com/repos/kahlan/kahlan/releases/latest - 2026-11-16: First release
api.github.com/repos/kahlan/kahlan/commits/1.0.0 - 2026-11-16: Contributors
api.github.com/repos/kahlan/kahlan/contributors?per_page=1 - 2026-11-16: Packagist downloads
packagist.org/packages/kahlan/kahlan.json