Always use composer commands, not any other package manager.
- Install dependencies:
composer install - Run unit tests:
composer run-script test - Run static analysis:
composer run-script phpstan - Run integration tests (requires Elasticsearch running):
ELASTICSEARCH_URL="http://elastic:${ES_LOCAL_PASSWORD}@localhost:9200" TEST_SUITE="free" composer run-script integration-test
The entire unit test suite (composer run-script test) must pass and exit cleanly before you commit code.
Integration tests require a running Elasticsearch instance. Skip them if one is not available.
- src/ - PHP source files
- tests/ - Unit and integration tests
- docs/ - Documentation
- Make changes to
src/files - Run
composer run-script phpstanto check for static analysis errors - Run
composer run-script testto verify all unit tests pass
No build step is needed - PHP is interpreted directly.
All code in src/ and tests/, and any scripts run by composer, must work on Linux, macOS, and Windows.
If a specific action you learned to do better will be useful to other agents doing the same task in the future, but may not be needed for all agent-related tasks, create or update skills in .github/skills/.
If you learned something that will be useful to any contributor to this project, update AGENTS.md.