Laravel SDK v1.0 — Now Available

AI-Powered SEO Automation for Laravel

Integrate powerful AI tools into your Laravel application with a clean, type-safe SDK. Generate meta tags, keywords, and SEO scores in seconds.

$ composer require refinder/laravel-sdk
SeoController.php
use Refinder\LaravelSdk\Facades\Refinder;

$result = Refinder::seo()->execute([
    'content'      => $article->body,
    'content_type' => 'article',
    'language'     => 'en',
]);

// Access structured SEO output
echo $result->output->metaTitle;
echo $result->output->seoScore->overall; // 85

if ($result->output->seoScore->isPassing()) {
    // Score >= 60 — SEO is good!
}
5+
LLM Providers
99.9%
API Uptime
<15s
Avg Response
100%
Type-Safe
Powered by Leading AI

Built on the World's Best AI Models

We integrate with the most advanced AI platforms to deliver unmatched SEO intelligence and content optimization.

OpenAI
GPT-4o & GPT-4
Anthropic
Claude 4 & Sonnet
Google
Gemini Pro & Ultra
Meta AI
LLaMA 3.1
Mistral AI
Mixtral & Large
DeepSeek
DeepSeek V3
Cohere
Command R+
Stability AI
SDXL & Stable LM
OpenAI
GPT-4o & GPT-4
Anthropic
Claude 4 & Sonnet
Google
Gemini Pro & Ultra
Meta AI
LLaMA 3.1
Mistral AI
Mixtral & Large
DeepSeek
DeepSeek V3
Cohere
Command R+
Stability AI
SDXL & Stable LM
𝕏
xAI
Grok-2
AWS Bedrock
Titan & Nova
Azure AI
Copilot & GPT
Perplexity
Sonar Pro
🤗
Hugging Face
Transformers
NVIDIA
NeMo & CUDA
Alibaba Cloud
Qwen 2.5
Together AI
Open Source
𝕏
xAI
Grok-2
AWS Bedrock
Titan & Nova
Azure AI
Copilot & GPT
Perplexity
Sonar Pro
🤗
Hugging Face
Transformers
NVIDIA
NeMo & CUDA
Alibaba Cloud
Qwen 2.5
Together AI
Open Source
Features

Everything you need to supercharge SEO

A production-ready SDK with enterprise-grade features, built for Laravel developers who demand the best.

Clean Facade API

Access all features through an elegant Refinder::seo() facade with full IDE autocompletion.

Type-Safe DTOs

All requests and responses use strict PHP 8.2+ readonly DTOs. No more guessing array structures.

Multi-Provider AI

Powered by OpenAI, DeepSeek, Alibaba Qwen, and more. Zero vendor lock-in — the platform picks the best model.

Smart Error Handling

Custom exception hierarchy with specific types for auth, validation, rate limits, and tool errors. Never crash unexpectedly.

Laravel Events

Built-in event dispatching for tool executions, failures, and rate limit warnings. Integrate with your monitoring stack.

Built-in Caching

Automatic response caching for identical inputs using Laravel's cache system. Save API calls and reduce costs.

How It Works

Three steps to AI-powered SEO

Get started in under 5 minutes. Install, configure, and start optimizing.

1

Install the SDK

One Composer command to install. Auto-discovers service provider and facade.

composer require refinder/laravel-sdk
2

Add Your API Key

Set your Refinder API key in the .env file. That's all the config you need.

REFINDER_API_KEY=rfnd_xxx...
3

Execute AI Tools

Call the SEO tool and get structured, typed results with scores, keywords, and suggestions.

Refinder::seo()->execute($data)
Code Examples

Developer-first experience

Clean APIs, structured outputs, and full IDE support. Here's how it looks in action.

QuickStartExample.php
use Refinder\LaravelSdk\Facades\Refinder;

// Execute SEO analysis — one line of code
$result = Refinder::seo()->execute([
    'content' => 'Your article content here...',
    'content_type' => 'article',
    'language' => 'en',
]);

// Access strongly-typed output
echo $result->output->metaTitle;           // "Optimized SEO Title"
echo $result->output->metaDescription;     // "Meta description..."
echo $result->output->seoScore->overall;   // 85

// Keywords are fully structured
$result->output->keywords->primary;    // ['seo', 'optimization']
$result->output->keywords->longTail;    // ['best seo practices 2026']
AdvancedSeoExample.php
use Refinder\LaravelSdk\DTOs\SeoInput;
use Refinder\LaravelSdk\Facades\Refinder;

$input = new SeoInput(
    content:        $article->body,
    url:            route('articles.show', $article),
    contentType:    'article',
    language:       'en',
    depth:          'technical',
    targetKeywords: ['AI tools', 'SEO automation'],
    brandName:      'MyBrand',
    industry:       'Technology',
);

$result = Refinder::seo()->execute($input);

// Update your model with SEO data
$article->update([
    'seo_title' => $result->output->metaTitle,
    'seo_score' => $result->output->seoScore->overall,
]);
ErrorHandlingExample.php
use Refinder\LaravelSdk\Exceptions\RateLimitException;
use Refinder\LaravelSdk\Exceptions\ValidationException;
use Refinder\LaravelSdk\Facades\Refinder;

try {
    $result = Refinder::seo()->execute(['content' => $text]);

    return response()->json([
        'seo'    => $result->output,
        'tokens' => $result->usage->totalTokens,
    ]);

} catch (ValidationException $e) {
    return response()->json(['error' => $e->errors], 422);

} catch (RateLimitException $e) {
    return response()->json([
        'error'   => 'Rate limit reached',
        'limit'   => $e->limit,
        'current' => $e->current,
    ], 429);
}
SEO Output

Structured, actionable SEO intelligence

Every analysis returns a comprehensive, typed output with meta tags, keywords, content analysis, heading suggestions, optimization recommendations, and SEO scores.

Meta Title & Description — SEO-optimized, perfect character length
Primary, Secondary & Long-tail Keywords — AI-generated keyword strategy
SEO Score (0-100) — Overall, content, keywords, and structure scores
Heading Structure & Optimization Tips — H1-H3 suggestions with priority-ranked actions
SEO Analysis Result
85
SEO Score: Excellent
Content: 82 | Keywords: 90 | Structure: 83
Meta Title
"AI-Powered SEO Automation: Complete Guide for Laravel Developers | Refinder"
Meta Description
"Discover how to automate SEO with AI in your Laravel app. Generate meta tags, keywords, and scores using the Refinder SDK..."
Keywords
SEO automation Laravel SDK AI tools content optimization
Pricing

Simple, transparent pricing

Start free, scale as you grow. No hidden fees, no surprises.

Free

Free tier with limited access.

$0 forever
50 requests/month
10 requests/day
Basic SEO Analysis
Full API Access
Get Started Free
Most Popular

Pro

Professional plan with higher limits.

$30 /month
1,000 requests/month
100 requests/day
Advanced SEO Analysis
Full API Access
Priority Support
Start Pro Plan

Enterprise

Unlimited access for enterprises.

$100 /month
10,000 requests/month
1,000 requests/day
Technical SEO (Full)
Full API Access
Priority Support
Dedicated Support
Custom AI Models
Start Enterprise Plan

Frequently Asked Questions

Everything you need to know about Refinder AI Tools.

Refinder abstracts multiple LLM providers behind a unified API including OpenAI (GPT-4o), DeepSeek, and Alibaba Cloud (Qwen). The platform automatically selects the best model for each task, and you can override the provider/model per request.
Every request includes your API key in the X-API-Key header. Keys use the format rfnd_ followed by 48 alphanumeric characters. Keys are hashed server-side and shown only once on creation. The SDK handles this automatically.
The API returns HTTP 429 with details about your limit and current usage. The SDK throws a RateLimitException with $e->limit and $e->current properties. Limits reset daily at midnight UTC and monthly on the 1st.
Yes! The SDK has built-in caching support. Enable it with REFINDER_CACHE_ENABLED=true in your .env file. It uses Laravel's default cache driver and generates unique keys from tool slug + md5(input). Only successful executions are cached.
The SDK supports Laravel 11.x and 12.x with PHP 8.2 or higher. It uses Laravel's HTTP client, config system, service container, and event dispatcher natively.
The SDK provides a RefinderFake class. Call Refinder::fake() in your tests to mock responses. You can assert tool executions, set custom responses, and verify call counts — all without hitting the API.

Ready to supercharge your SEO workflow?

Join developers who are already using Refinder to automate SEO. Start free, no credit card required.

$ composer require refinder/laravel-sdk