PHPackages                             iankibet/sdp-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. iankibet/sdp-ai

ActiveLibrary

iankibet/sdp-ai
===============

AI integration package for SDP CMS Builder

1.0.0(7mo ago)01.4k↓33.3%MITPHPPHP ^8.0

Since Apr 14Pushed 6mo ago1 watchersCompare

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

READMEChangelog (5)DependenciesVersions (7)Used By (0)

SDP-AI
======

[](#sdp-ai)

A Laravel package for integrating multiple AI providers (ChatGPT, Claude, DeepSeek, Xai) using a simple, unified API.

---

Features
--------

[](#features)

- Easy switching between AI providers.
- Support for ChatGPT, Claude, DeepSeek, and Xai.
- Laravel-ready with Service Provider and Facade.
- Extendable and customizable.

---

Installation
------------

[](#installation)

```
composer require iankibet/sdp-ai
```

> Replace `your-vendor-name` with your actual composer namespace.

---

Configuration
-------------

[](#configuration)

Publish the configuration file:

```
php artisan vendor:publish --tag="sdpai-config"
```

This will publish `config/sdp-ai.php` where you can configure API keys and default providers.

Example `config/sdp-ai.php`:

```
return [
    'default' => 'chatgpt',

    'providers' => [
        'chatgpt' => [
            'api_key' => env('CHATGPT_API_KEY'),
        ],
        'claude' => [
            'api_key' => env('CLAUDE_API_KEY'),
        ],
        'deepseek' => [
            'api_key' => env('DEEPSEEK_API_KEY'),
        ],
        'xai' => [
            'api_key' => env('XAI_API_KEY'),
        ],
    ],
];
```

---

Usage
-----

[](#usage)

Use the provided `SDPAI` facade:

```
use SdpAi\Facades\SDPAI;

// Send a message using the default provider
$response = SDPAI::ask('Hello, how are you?');

// Switch provider dynamically
$response = SDPAI::setProvider('claude')->ask('Tell me a joke.');
```

Or via Dependency Injection:

```
use SdpAi\SdpAiManager;

class MyController
{
    public function handle(SdpAiManager $sdpAi)
    {
        $response = $sdpAi->setProvider('deepseek')->ask('Explain Quantum Physics.');
    }
}
```

---

Extending
---------

[](#extending)

You can create your own provider by implementing the `SdpAi\Contracts\SdpAiProvider` interface and binding it in the `config/sdp-ai.php`.

---

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

38

—

LowBetter than 84% of packages

Maintenance69

Regular maintenance activity

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Total

5

Last Release

210d ago

Major Versions

0.0.4 → 1.0.02025-10-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/d0a938e18a864899b0a7963fc0e63d48be5d7ec5ecc5543ff9423bf85905ba4f?d=identicon)[ictianspecialist](/maintainers/ictianspecialist)

---

Top Contributors

[![iankibet](https://avatars.githubusercontent.com/u/10730525?v=4)](https://github.com/iankibet "iankibet (1 commits)")

---

Tags

laravelaiopenaiChatGptSDP

### Embed Badge

![Health badge](/badges/iankibet-sdp-ai/health.svg)

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

###  Alternatives

[sbsaga/toon

🧠 TOON for Laravel — a compact, human-readable, and token-efficient data format for AI prompts &amp; LLM contexts. Perfect for ChatGPT, Gemini, Claude, Mistral, and OpenAI integrations (JSON ⇄ TOON).

6115.6k](/packages/sbsaga-toon)[smousss/laravel-globalize

Make Laravel projects translatable in a matter of seconds!

2266.3k](/packages/smousss-laravel-globalize)[claude-php/claude-php-sdk-laravel

Laravel integration for the Claude PHP SDK - Anthropic Claude API

5010.8k](/packages/claude-php-claude-php-sdk-laravel)

PHPackages © 2026

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