I'm building a framework independent SDK for integrating with LLM APIs. I've named it llm-sdk and you can find it here:
https://github.com/1tomany/llm-sdk
Why
Both major frameworks (Symfony and Laravel) have their own native AI libraries, but they're very tightly coupled to the framework itself. The popular openai-php/client package only works with OpenAI, and Prism is also tightly coupled with Laravel.
Though I love and use Symfony extensively, a bit of NIH syndrome got the best of me and I started writing a new library, and thus llm-sdk was born. I've also released a Symfony bundle if you wish to use it that way.
Additionally, the platf