elasticsearch-php
AGENTS.md5.3k starsChanged 4 months agoMITView on GitHub
Always use composer commands, not any other package manager. 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. 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…
Trending
Less talk lately.about the whole repository
Who's talking about elastic/elasticsearch-php
- elastic/elastic-transport-php“https://github.com/elastic/elasticsearch-php is gone”GitHub · Oct 29, 2024 · 25 reactions
- elastic/elasticsearch-php-examples“What happend to elasticsearch-php?”GitHub · Oct 29, 2024 · 24 reactions
- elastic/elasticsearch-serverless-php“elastic/elasticsearch-php is gone!”GitHub · Oct 29, 2024 · 7 reactions
- httpwg/http-extensions“SEARCH method”GitHub · Oct 1, 2019 · 5 reactions
- matchish/laravel-scout-elasticsearch“Accessibility problems with elasticsearch-php”GitHub · Oct 29, 2024 · 3 reactions
The biggest 5 of 23 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 23
Talked about on GitHub (23 times).
On GitHub · 23
- Oct 29, 2024https://github.com/elastic/elasticsearch-php is gone — elastic/elastic-transport-php25 reactions · 6 comments
- Oct 29, 2024What happend to elasticsearch-php? — elastic/elasticsearch-php-examples24 reactions · 2 comments
- Oct 29, 2024elastic/elasticsearch-php is gone! — elastic/elasticsearch-serverless-php7 reactions · 1 comment
- Oct 1, 2019SEARCH method — httpwg/http-extensions5 reactions · 5 comments
- Oct 29, 2024Accessibility problems with elasticsearch-php — matchish/laravel-scout-elasticsearch3 reactions · 5 comments
18 more on GitHub
- Feb 11, 2021PHP 8 Support — babenkoivan/scout-elasticsearch-driver3 reactions · 4 comments
- Dec 4, 2025Add clients to updatecli automation — elastic/docs-builder2 reactions · 3 comments
- Mar 30, 2020composer guzzlehttp/ringphp — elastic/openapi-codegen-php2 reactions
- Mar 17, 2025Clean up broken links and unused variables in docset.yml files — elastic/docs-content1 reaction · 2 comments
- Jun 5, 2024[PROPOSAL] Request feedback on replacing ezimuel/ringphp — opensearch-project/opensearch-php1 reaction · 12 comments
- Feb 4, 2024Elasticsearch 8 composer version constraint is not allowing latest versions (PHP 8.3 related) — magento/magento21 reaction · 12 comments
- Feb 27, 2023Make SemanticMediaWiki compatible with new ElasticSearch — SemanticMediaWiki/SemanticMediaWiki1 reaction · 21 comments
- Aug 10, 2020Update elasticsearch/elasticsearch requirement from ^5.3|^6.0 to ^7.8.0 — SemanticMediaWiki/SemanticMediaWiki1 reaction · 1 comment
- Jun 27, 2020Update elasticsearch/elasticsearch requirement from ^5.3|^6.0 to ^7.8.0 — SemanticMediaWiki/SemanticMediaWiki1 reaction · 3 comments
- Mar 17, 2020Remove the package? — yiisoft/db-elasticsearch1 reaction
- Oct 1, 2019Header for considering the request body as part of the cache key — httpwg/http-extensions1 reaction · 2 comments
- Jul 9, 2019Update `elasticsearch-php` to 5.4 — ruflin/Elastica1 reaction · 6 comments
- Oct 4, 2026Bump elasticsearch/elasticsearch from 8.19.0 to 9.5.0 — MLP-VectorClub/Winterchilla0 reactions
- Aug 9, 2026build(deps): update elasticsearch/elasticsearch requirement from ^7.0 to ^9.5 — broadway/saga-state-elasticsearch0 reactions
- Aug 9, 2026Update elasticsearch/elasticsearch requirement from ^7.0 to ^9.5 — broadway/read-model-elasticsearch0 reactions
- Jan 25, 2024Elasticsearch ~6.8 upgrade — kingandpartners/elastic-press0 reactions
- Mar 23, 2022Update elasticsearch/elasticsearch requirement from ~7.0 to ~8.1 — wunderio/decoupled-project0 reactions
- Jul 29, 2020Bump elasticsearch/elasticsearch from 6.7.1 to 6.7.2 — kyong/laravel-elasticsearch-sample0 reactions
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
10 rules. About 0 are common, 2 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
Always use composer commands, not any other package manager.
- Very specific: line 8
Run unit tests: composer run-script test
- Very specific: line 9
Run static analysis: composer run-script phpstan
- Very specific: line 10
Run integration tests (requires Elasticsearch running): ELASTICSEARCH_URL="http://elastic:${ES_LOCAL_PASSWORD}@localhost:9200" …
- Very specific: line 27
Run composer run-script phpstan to check for static analysis errors
- Very specific: line 28
Run composer run-script test to verify all unit tests pass
- Distinctive: line 30
No build step is needed - PHP is interpreted directly.
- Very specific: line 34
All code in src/ and tests/, and any scripts run by composer, must work on Linux, macOS, and Windows.
- Very specific: line 38
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 …
- Distinctive: line 40
If you learned something that will be useful to any contributor to this project, update AGENTS.md.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
Setup commands
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
Testing
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.
Project Structure
- src/ - PHP source files
- tests/ - Unit and integration tests
- docs/ - Documentation
Development Workflow
- 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.
OS Compatibility
All code in src/ and tests/, and any scripts run by composer, must work on Linux, macOS, and Windows.
Adding new agent instructions
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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

