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.7(5mo ago)031MITPHPPHP &gt;=8.2

Since Aug 22Pushed 5mo 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 1mo ago

READMEChangelog (2)Dependencies (7)Versions (7)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

33

—

LowBetter than 75% of packages

Maintenance71

Regular maintenance activity

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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 ~21 days

Recently: every ~26 days

Total

6

Last Release

164d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/85f98eb82c1113e74b85a2f1e517b06c1d6d89caaef86f13f54a5ecb7e57ffb5?d=identicon)[mecomedia](/maintainers/mecomedia)

---

Top Contributors

[![mecomedia](https://avatars.githubusercontent.com/u/20788969?v=4)](https://github.com/mecomedia "mecomedia (10 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.4k10.6M274](/packages/laravel-boost)[laravel/socialite

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

5.7k96.9M674](/packages/laravel-socialite)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k84.2M225](/packages/laravel-horizon)[laravel/ui

Laravel UI utilities and presets.

2.7k134.9M601](/packages/laravel-ui)[laravel/jetstream

Tailwind scaffolding for the Laravel framework.

4.1k19.8M136](/packages/laravel-jetstream)[stancl/tenancy

Automatic multi-tenancy for your Laravel application.

4.3k6.6M40](/packages/stancl-tenancy)

PHPackages © 2026

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