crustum / openrouter
OpenRouter plugin for CakePHP applications
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:cakephp-plugin
pkg:composer/crustum/openrouter
Requires
- php: >=8.3
- cakephp/cakephp: ^5.1
- caseyamcl/guzzle_retry_middleware: ^2.12
- crustum/plugin-manifest: ^1.0
- guzzlehttp/guzzle: ^7.9
Requires (Dev)
- cakephp/bake: ^3.0
- cakephp/cakephp-codesniffer: ^5.0
- mockery/mockery: ^1.6
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^10.5
README
The OpenRouter plugin provides OpenRouter API integration for CakePHP applications.
OpenRouter is a unified interface for Large Language Models (LLMs) that allows you to interact with various AI models through a single API. The plugin provides a clean, type-safe interface using Data Transfer Objects (DTOs) for all API interactions, making it easy to work with OpenRouter's extensive feature set including chat completions, streaming, tool calling, web search, file inputs, and more.
The plugin integrates seamlessly with CakePHP's configuration system and provides a static facade for easy access to OpenRouter functionality.
Requirements
- PHP 8.3+
- CakePHP 5.1+
See Versions.md for the supported CakePHP versions.
Documentation
For documentation, as well as tutorials, see the docs directory of this repository.
License
Licensed under the MIT License. Redistributions of the source code included in this repository must retain the copyright notice found in each file.