Skip to content

Crustum/cakephp-open-router

Repository files navigation

CakePHP OpenRouter Plugin

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.

About

The OpenRouter plugin provides OpenRouter API integration for CakePHP applications.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages