PHPackages                             latitudeinnovation/laravel-raraxuan - 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. [API Development](/categories/api)
4. /
5. latitudeinnovation/laravel-raraxuan

ActiveLibrary[API Development](/categories/api)

latitudeinnovation/laravel-raraxuan
===================================

Laravel SDK for Raraxuan AI API

v0.1.1(yesterday)09↑2566.7%MITPHPPHP ^8.2

Since Jun 4Pushed yesterdayCompare

[ Source](https://github.com/latitudeinnovation/laravel-raraxuan)[ Packagist](https://packagist.org/packages/latitudeinnovation/laravel-raraxuan)[ Docs](https://ai.raraxuan.com)[ RSS](/packages/latitudeinnovation-laravel-raraxuan/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (4)Versions (3)Used By (0)

Laravel Raraxuan
================

[](#laravel-raraxuan)

Laravel SDK for calling the Raraxuan AI API from Laravel applications.

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

[](#requirements)

- PHP 8.2+
- Laravel 10, 11, 12, or 13

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

[](#installation)

```
composer require latitudeinnovation/laravel-raraxuan
```

Publish the configuration file:

```
php artisan vendor:publish --tag=raraxuan-config
```

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

[](#configuration)

Add these values to your Laravel project's `.env` file:

```
RARAXUAN_API_URL=https://ai.raraxuan.com/api
RARAXUAN_API_KEY=rx_live_xxxxxxxxx
RARAXUAN_TIMEOUT=60
```

The published config file is `config/raraxuan.php`:

```
return [
    'base_url' => env('RARAXUAN_API_URL', 'https://ai.raraxuan.com/api'),
    'api_key' => env('RARAXUAN_API_KEY'),
    'timeout' => env('RARAXUAN_TIMEOUT', 60),
];
```

Usage
-----

[](#usage)

Call an agent through the facade:

```
use LatitudeInnovation\Raraxuan\Facades\Raraxuan;

$response = Raraxuan::agent('seo-writer', [
    'topic' => 'Laravel hosting',
]);
```

Or call the generic run endpoint:

```
use LatitudeInnovation\Raraxuan\Facades\Raraxuan;

$response = Raraxuan::run([
    'agent' => 'seo-writer',
    'input' => [
        'topic' => 'Laravel hosting',
    ],
]);
```

Error Handling
--------------

[](#error-handling)

The SDK throws its own exceptions for missing or invalid local configuration:

- `LatitudeInnovation\Raraxuan\Exceptions\MissingApiKeyException`
- `LatitudeInnovation\Raraxuan\Exceptions\InvalidConfigurationException`

API request failures use Laravel's HTTP client and call `throw()` on failed responses. Catch `Illuminate\Http\Client\RequestException` when you need to handle API errors.

```
use Illuminate\Http\Client\RequestException;
use LatitudeInnovation\Raraxuan\Exceptions\RaraxuanException;
use LatitudeInnovation\Raraxuan\Facades\Raraxuan;

try {
    $response = Raraxuan::agent('seo-writer', [
        'topic' => 'Laravel hosting',
    ]);
} catch (RequestException $exception) {
    report($exception);

    $status = $exception->response->status();
    $error = $exception->response->json();
} catch (RaraxuanException $exception) {
    report($exception);
}
```

Testing
-------

[](#testing)

After installing development dependencies, run:

```
composer test
```

Local Development
-----------------

[](#local-development)

Before publishing to Packagist, require this package from a local Laravel project:

```
composer config repositories.raraxuan path ../laravel-raraxuan
composer require latitudeinnovation/laravel-raraxuan:@dev
```

If Composer cannot detect the package version, add a branch alias or require `dev-main` from a Git checkout.

Queue Support
-------------

[](#queue-support)

Queue and job helpers are not included yet. A future version can add jobs for long-running agent calls while keeping this client as the synchronous API layer.

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance100

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

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

Every ~3 days

Total

2

Last Release

1d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33911607?v=4)[Latitude Innovation Sdn Bhd](/maintainers/latitudeinnovation)[@latitudeinnovation](https://github.com/latitudeinnovation)

---

Top Contributors

[![juzhax](https://avatars.githubusercontent.com/u/1167187?v=4)](https://github.com/juzhax "juzhax (3 commits)")

---

Tags

laravelsdkairaraxuan

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/latitudeinnovation-laravel-raraxuan/health.svg)

```
[![Health](https://phpackages.com/badges/latitudeinnovation-laravel-raraxuan/health.svg)](https://phpackages.com/packages/latitudeinnovation-laravel-raraxuan)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

815320.5k3](/packages/defstudio-telegraph)[resend/resend-laravel

Resend for Laravel

1212.2M8](/packages/resend-resend-laravel)[essa/api-tool-kit

set of tools to build an api with laravel

53286.5k](/packages/essa-api-tool-kit)[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

5019.3k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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