PHPackages                             mecomedia/centaurus-ai - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. mecomedia/centaurus-ai

ActiveLibrary[Framework](/categories/framework)

mecomedia/centaurus-ai
======================

Centaurus-AI – Laravel package by mecomedia.

0.1.12(1mo ago)050MITPHPPHP &gt;=8.2

Since Aug 22Pushed 1mo agoCompare

[ Source](https://github.com/mecomedia/centaurus-ai)[ Packagist](https://packagist.org/packages/mecomedia/centaurus-ai)[ RSS](/packages/mecomedia-centaurus-ai/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (4)Dependencies (21)Versions (11)Used By (0)

Centaurus-AI for Laravel
========================

[](#centaurus-ai-for-laravel)

### Introduction

[](#introduction)

CentaurusAI is a library that combines the chatbot API of the most important LLMs so that LLMs can be quickly and easily exchanged to another. Access is standardized to reduce implementation effort.

Access to the Google Document API is also implemented for the ocr evaluation of PDF documents. This makes it easy to extract text from uploaded documents.

The Embedding API from OpenAI is also implemented for use in environments with vector databases.

### Installation

[](#installation)

Installation via composer

```
composer require mecomedia/centaurus-ai
```

Configuration of the AI API credentials in the .env file

```
CLAUDE3_API_KEY=sk-ant-api03-XXXXXXXXX

OPENAI_API_KEY=sk-proj-XXXXXXXXX
OPENAI_ORGANIZATION=org-XXXXXXXXX
OPENAI_REQUEST_TIMEOUT=300

GEMINI_API_KEY=XXXXXXXXX
GEMINI_REQUEST_TIMEOUT=300

MISTRAL_API_KEY=XXXXXXXXX
MISTRAL_API_URL=https://api.mistral.ai/v1

IONOS_API_KEY=XXXXXXXXX
IONOS_API_URL=https://openai.inference.de-txl.ionos.com

GOOGLE_DOCUMENT_AI_JSON=core-forklift-XXXXXXXXX.json
GOOGLE_DOCUMENT_AI_PROJECT_ID=XXXXXXXXX
GOOGLE_DOCUMENT_AI_PROCESSOR_ID=XXXXXXXXX
GOOGLE_DOCUMENT_AI_LOCATION=eu
GOOGLE_DOCUMENT_AI_ENDPOINT=eu-documentai.googleapis.com
```

Use the facade in your controllers or services

```
use Mecomedia\CentaurusAI\Facades\CentaurusAI;
```

### Process OCR (PDF documents only)

[](#process-ocr-pdf-documents-only)

```
$ocr = CentaurusAI::processOcrDocument($filename);
```

### AI chat requests to several AI API

[](#ai-chat-requests-to-several-ai-api)

```
$messages = [
    [
        'role' => 'user',
        'content' => 'Hello, how are you?'
    ],
    [
        'role' => 'user',
        'content' => 'I am fine, thank you.'
    ]
];

$response = sendAnthropic($messages, 4096, AIModels::CLAUDE_37);
$response = sendOpenAI($messages, AIModels::OPENAI_MODEL_5O_NANO);
$response = sendGemini($messages, AIModels::GEMINI_25_LITE, 0.5);
$response = sendMistral($messages, AIModels::MISTRAL_LARGE, 0.3);
$response = sendIonos($messages, AIModels::IONOS_LAMA_33, 'float');
```

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance92

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~36 days

Recently: every ~56 days

Total

10

Last Release

32d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20788969?v=4)[Markus Weiss](/maintainers/mecomedia)[@mecomedia](https://github.com/mecomedia)

---

Top Contributors

[![mecomedia](https://avatars.githubusercontent.com/u/20788969?v=4)](https://github.com/mecomedia "mecomedia (12 commits)")

---

Tags

laravelaicentaurus-aimecomedia

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mecomedia-centaurus-ai/health.svg)

```
[![Health](https://phpackages.com/badges/mecomedia-centaurus-ai/health.svg)](https://phpackages.com/packages/mecomedia-centaurus-ai)
```

###  Alternatives

[laravel/boost

Laravel Boost accelerates AI-assisted development by providing the essential context and structure that AI needs to generate high-quality, Laravel-specific code.

3.6k26.0M803](/packages/laravel-boost)[laravel/ai

The official AI SDK for Laravel.

1.1k4.6M317](/packages/laravel-ai)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k99.8M354](/packages/laravel-horizon)[laravel/sail

Docker files for running a basic Laravel application.

1.9k212.4M1.4k](/packages/laravel-sail)[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k113.1M996](/packages/laravel-socialite)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

79227.1M227](/packages/laravel-mcp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
