open-ai

A community-driven PHP SDK for OpenAI

A new way for AI to search for data
View on GitHub
2,361GitHub stars
276commits on main
292forks
6.3.1latest release, 2026-10-21

PHP 100% · created 2021-12-21 · last push 2026-10-21

What XERJ indexed

Snapshot

37 files · 208.9 KB

The whole repository at commit 88097be0cd (2026-10-11). main is 8 commits ahead.

Selected work

Orhan erday
@orhanerday

“add Response object, OpenAiException, retries, and PHPStan anal…”. 11 files, 1,043 lines in tests, src, the project root.

Licence

The repository

MIT

LICENSE file checked at the pinned commit; the author agreed to inclusion.

The XERJ corpus

MIT, with credit

The author agreed by email on 2026-10-12. Same terms as the repository. Answers name the repo, the commit and the file:line.

selected for the XERJ Corpus Hublicence clearedsuggested use: adapt with attribution

openaigpt-3laravelphpdall-edalle2openai-apicakephp

Example questions

Inside the indexed corpus

Licence on GitHub and in the corpus

GitHub reported MIT for orhanerday/open-ai on 2026-10-31, and the LICENSE file at commit 88097be0cd was reviewed as MIT. They match, so answers from this corpus carry the same terms as the live repository.

Contributors

Orhan erday (@orhanerday) has 1 selected repository on the hub.

Using XERJ with open-ai

The prompt

Paste it into your AI agent. It clones orhanerday/open-ai at the pinned commit and indexes it on your machine.

Search the GitHub repository orhanerday/open-ai with XERJ (https://hub.xerj.org/corpus/orhanerday--open-ai).
Run these in a shell, in order, and check each result before the next:
1. xerj --help  (success: it prints usage). If xerj is missing: curl -fsSL https://xerj.org/get | sh
2. git clone https://github.com/orhanerday/open-ai open-ai && git -C open-ai checkout 88097be0cd5fc219c6e2d7cbf29fe7fdf1ed2ac4
3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data
4. xerj autoindex ./open-ai --url http://127.0.0.1:9200 --prefix open-ai --progress plain
5. xerj autoindex map --url http://127.0.0.1:9200
Then answer my question from the indexed files and cite the ax_path of every hit. Query syntax: https://xerj.org/llms.txt
Licence: MIT. Keep the copyright notice and credit the authors.

Related

Stats: GitHub API, fetched 2026-10-31. Snapshot: the git tree at the pinned commit. Selected work and consent: the XERJ registry.