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
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!
}
We integrate with the most advanced AI platforms to deliver unmatched SEO intelligence and content optimization.
A production-ready SDK with enterprise-grade features, built for Laravel developers who demand the best.
Access all features through an elegant Refinder::seo() facade with full IDE autocompletion.
All requests and responses use strict PHP 8.2+ readonly DTOs. No more guessing array structures.
Powered by OpenAI, DeepSeek, Alibaba Qwen, and more. Zero vendor lock-in — the platform picks the best model.
Custom exception hierarchy with specific types for auth, validation, rate limits, and tool errors. Never crash unexpectedly.
Built-in event dispatching for tool executions, failures, and rate limit warnings. Integrate with your monitoring stack.
Automatic response caching for identical inputs using Laravel's cache system. Save API calls and reduce costs.
Get started in under 5 minutes. Install, configure, and start optimizing.
One Composer command to install. Auto-discovers service provider and facade.
composer require refinder/laravel-sdk
Set your Refinder API key in the .env file. That's all the config you need.
REFINDER_API_KEY=rfnd_xxx...
Call the SEO tool and get structured, typed results with scores, keywords, and suggestions.
Refinder::seo()->execute($data)
Clean APIs, structured outputs, and full IDE support. Here's how it looks in action.
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']
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,
]);
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);
}
Every analysis returns a comprehensive, typed output with meta tags, keywords, content analysis, heading suggestions, optimization recommendations, and SEO scores.
Start free, scale as you grow. No hidden fees, no surprises.
Free tier with limited access.
Professional plan with higher limits.
Unlimited access for enterprises.
Everything you need to know about Refinder AI Tools.
Join developers who are already using Refinder to automate SEO. Start free, no credit card required.
composer require refinder/laravel-sdk