PHPackages                             mralaminahamed/ai-provider-for-minimax - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mralaminahamed/ai-provider-for-minimax

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

mralaminahamed/ai-provider-for-minimax
======================================

AI Provider for MiniMax — an independent MiniMax integration for the WordPress AI Client.

1.0.0(1mo ago)01↓100%GPL-2.0-or-laterPHPPHP &gt;=7.4CI passing

Since May 11Pushed 2w agoCompare

[ Source](https://github.com/mralaminahamed/ai-provider-for-minimax)[ Packagist](https://packagist.org/packages/mralaminahamed/ai-provider-for-minimax)[ Fund](https://alaminahamed.com/donate)[ RSS](/packages/mralaminahamed-ai-provider-for-minimax/feed)WikiDiscussions trunk Synced 1w ago

READMEChangelog (5)Dependencies (10)Versions (2)Used By (0)

AI Provider for MiniMax
=======================

[](#ai-provider-for-minimax)

An independent, third-party MiniMax provider for the [PHP AI Client](https://github.com/WordPress/php-ai-client) SDK. Works as both a Composer package and a WordPress plugin. Not affiliated with, endorsed by, or sponsored by MiniMax.

Requirements
------------

[](#requirements)

- PHP 7.4 or higher
- When using with WordPress, requires WordPress 7.0 or higher
    - If using an older WordPress release, the [wordpress/php-ai-client](https://github.com/WordPress/php-ai-client) package must be installed

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

[](#installation)

### As a Composer Package

[](#as-a-composer-package)

```
composer require mralaminahamed/ai-provider-for-minimax
```

### As a WordPress Plugin

[](#as-a-wordpress-plugin)

1. Download the plugin files
2. Upload to `/wp-content/plugins/alamin-ai-provider-for-minimax/`
3. Ensure the PHP AI Client plugin is installed and activated
4. Activate the plugin through the WordPress admin

Usage
-----

[](#usage)

### With WordPress

[](#with-wordpress)

The provider automatically registers itself with the PHP AI Client on the `init` hook. Simply ensure both plugins are active and configure your API key:

```
// Set your MiniMax API key (or use the MINIMAX_API_KEY environment variable)
putenv('MINIMAX_API_KEY=your-api-key');

// Use the provider
$result = AiClient::prompt('Hello, world!')
    ->usingProvider('minimax')
    ->generateTextResult();
```

### As a Standalone Package

[](#as-a-standalone-package)

```
use WordPress\AiClient\AiClient;
use AlAminAhamed\MiniMaxAiProvider\Provider\MiniMaxProvider;

// Register the provider
$registry = AiClient::defaultRegistry();
$registry->registerProvider(MiniMaxProvider::class);

// Set your API key
putenv('MINIMAX_API_KEY=your-api-key');

// Generate text
$result = AiClient::prompt('Explain quantum computing')
    ->usingProvider('minimax')
    ->generateTextResult();

echo $result->toText();
```

Supported Models
----------------

[](#supported-models)

Available models are dynamically discovered from the MiniMax API. This includes MiniMax-M2 series models for text generation. The provider falls back to a default model list when the API is unavailable.

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

[](#configuration)

The provider uses the `MINIMAX_API_KEY` environment variable for authentication. You can set this in your environment or via PHP:

```
putenv('MINIMAX_API_KEY=your-api-key');
```

License
-------

[](#license)

GPL-2.0-or-later

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance95

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

30d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/34349365?v=4)[Al Amin Ahamed](/maintainers/mralaminahamed)[@mralaminahamed](https://github.com/mralaminahamed)

---

Top Contributors

[![mralaminahamed](https://avatars.githubusercontent.com/u/34349365?v=4)](https://github.com/mralaminahamed "mralaminahamed (52 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mralaminahamed-ai-provider-for-minimax/health.svg)

```
[![Health](https://phpackages.com/badges/mralaminahamed-ai-provider-for-minimax/health.svg)](https://phpackages.com/packages/mralaminahamed-ai-provider-for-minimax)
```

###  Alternatives

[ctidigital/magento2-configurator

Keep magento persistently configured using files

174342.9k](/packages/ctidigital-magento2-configurator)[roots/wordpress-packager

Helper to generate WordPress Composer packages

433.2k](/packages/roots-wordpress-packager)[hanifhefaz/dcter

A composer package used to convert Jalali, Hijri, Gregorian and Julian dates to each others. Plus some extra utilities and helpers.

342.0k](/packages/hanifhefaz-dcter)

PHPackages © 2026

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