php-ai-starter
is a tiny module for tight integration of LLM and generative AI capabilities into your PHP project.
We set out to disprove the assumptions of many PHP developers:
-
that we must switch to
python
to integrate LLMs and generative AI deeply into our PHP projects -
that we can't enjoy the benefits of generative AI without thousands of lines of OPC (other people's code) in the form of upstream libraries (or entire frameworks)
Why go open source?
Recent upstream attacks on open source software have highlighted the need to keep code bases small enough to be grokked entirely by a single human brain.
Yet, the ecosystem around tapping into LLMs and generative AI models is heavily skewed toward widely shared python libraries. This opens an attack vector as millions of code bases become vulnerable to upstream attaacks on dependencies.
Feel free to send PRs or fork and join in!