aiseo / laravel-aiseo
Advanced AI-powered SEO package for Laravel with JSON-LD, OpenGraph, and Schema.org support
Requires
- php: ^8.1|^8.2|^8.3
- guzzlehttp/guzzle: ^7.0
- illuminate/contracts: ^10.0|^11.0|^12.0
- illuminate/support: ^10.0|^11.0|^12.0
- prism-php/prism: ^1.0
- spatie/laravel-activitylog: ^4.0
- spatie/laravel-analytics: ^4.0
- spatie/laravel-backup: ^8.0
- spatie/laravel-collection-macros: ^4.0
- spatie/laravel-cors: ^3.0
- spatie/laravel-feed: ^4.0
- spatie/laravel-google-calendar: ^2.0
- spatie/laravel-html: ^3.0
- spatie/laravel-http-logger: ^2.0
- spatie/laravel-ignition: ^2.0
- spatie/laravel-newsletter: ^5.0
- spatie/laravel-package-tools: ^1.16
- spatie/laravel-paginateroute: ^4.0
- spatie/laravel-permission: ^6.0
- spatie/laravel-query-builder: ^5.0
- spatie/laravel-query-string: ^2.0
- spatie/laravel-queueable-action: ^2.0
- spatie/laravel-ray: ^2.0
- spatie/laravel-responsecache: ^7.0
- spatie/laravel-robots-middleware: ^2.0
- spatie/laravel-route-attributes: ^2.0
- spatie/laravel-schemaless-attributes: ^2.0
- spatie/laravel-settings: ^2.0
- spatie/laravel-sitemap: ^6.0
- spatie/laravel-slack-alerts: ^1.0
- spatie/laravel-sluggable: ^3.0
- spatie/laravel-tags: ^4.0
- spatie/laravel-translatable: ^6.0
- spatie/laravel-uptime-monitor: ^4.0
- spatie/laravel-validation-rules: ^3.0
- spatie/laravel-webhook-client: ^3.0
- spatie/laravel-webhook-server: ^4.0
- spatie/schema-org: ^3.0
Requires (Dev)
- laravel/pint: ^1.13
- nunomaduro/collision: ^7.0
- orchestra/testbench: ^8.0|^9.0
- pestphp/pest: ^2.0
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10.0
- spatie/laravel-activitylog: ^4.0
- spatie/laravel-analytics: ^4.0
- spatie/laravel-backup: ^8.0
- spatie/laravel-collection-macros: ^4.0
- spatie/laravel-cors: ^3.0
- spatie/laravel-google-calendar: ^2.0
- spatie/laravel-http-logger: ^2.0
- spatie/laravel-ignition: ^2.0
- spatie/laravel-newsletter: ^5.0
- spatie/laravel-paginateroute: ^4.0
- spatie/laravel-permission: ^6.0
- spatie/laravel-query-builder: ^5.0
- spatie/laravel-query-string: ^2.0
- spatie/laravel-queueable-action: ^2.0
- spatie/laravel-ray: ^2.0
- spatie/laravel-route-attributes: ^2.0
- spatie/laravel-schemaless-attributes: ^2.0
- spatie/laravel-settings: ^2.0
- spatie/laravel-slack-alerts: ^1.0
- spatie/laravel-translatable: ^6.0
- spatie/laravel-uptime-monitor: ^4.0
- spatie/laravel-validation-rules: ^3.0
- spatie/laravel-webhook-client: ^3.0
- spatie/laravel-webhook-server: ^4.0
This package is not auto-updated.
Last update: 2025-06-04 13:35:21 UTC
README
An advanced AI-powered SEO tool for Laravel that provides comprehensive SEO optimization, structured data generation, and real-time analysis. This package integrates with Prism AI for enhanced content optimization and automated SEO improvements.
๐ Features
๐ Structured Data & Markup
- JSON-LD Schema.org markup generation
- OpenGraph meta tags automation
- Twitter Card meta tags
- Article, Product, Organization schemas
- BreadcrumbList and FAQPage schemas
- LocalBusiness and Event schemas
- Rich Snippets optimization
๐ค AI-Powered Automation
- Content analysis and optimization
- Keyword density analysis
- SEO score calculation
- Competitor analysis
- Title and meta description generation
- Image alt text optimization
- Internal linking suggestions
- Content gap analysis
โก Real-Time Features
- Live SEO monitoring
- Performance tracking
- Automated sitemap generation
- Robots.txt management
- Canonical URL handling
- Mobile optimization checks
- Page speed analysis
๐ ๏ธ Additional Features
- Multi-language support
- Activity logging
- Backup functionality
- Analytics integration
- Webhook support
- Queue management
- Caching and performance optimization
- Permission management
- API rate limiting
- Error tracking
- Uptime monitoring
- Newsletter integration
- Google Calendar integration
- Slack notifications
๐ Requirements
- PHP 8.1 or higher
- Laravel 10.x, 11.x, or 12.x
- Composer 2.x
๐ฅ Installation
You can install the package via composer:
composer require laravelgpt/laravel-aiseo
After installing the package, publish the configuration file:
php artisan vendor:publish --provider="LaravelGPT\AiSeo\AiSeoServiceProvider"
Required Dependencies
The package requires the following dependencies:
composer require spatie/laravel-sitemap:^6.0 \ spatie/laravel-robots-middleware:^2.0 \ spatie/laravel-responsecache:^7.0 \ spatie/laravel-backup:^8.0 \ spatie/laravel-activitylog:^4.0 \ spatie/laravel-permission:^6.0 \ spatie/laravel-slack-alerts:^1.0 \ spatie/laravel-google-calendar:^4.0 \ spatie/laravel-newsletter:^5.0 \ spatie/laravel-webhook-client:^3.0 \ spatie/laravel-uptime-monitor:^4.0 \ spatie/laravel-analytics:^4.0 \ spatie/laravel-queueable-action:^2.0 \ spatie/laravel-query-builder:^5.0 \ spatie/laravel-settings:^2.0 \ spatie/laravel-tags:^4.0 \ spatie/laravel-translatable:^6.0 \ prism-php/prism:^1.0
โ๏ธ Configuration
Add the following to your .env
file:
AISEO_AUTHOR_NAME="Your Name" AISEO_PUBLISHER_NAME="Your Company" AISEO_LOGO_URL="https://example.com/logo.png" AISEO_AI_API_KEY="your-ai-api-key" AISEO_GOOGLE_ANALYTICS_ID="your-ga-id" AISEO_SLACK_WEBHOOK_URL="your-slack-webhook" AISEO_GOOGLE_CALENDAR_ID="your-calendar-id" AISEO_NEWSLETTER_API_KEY="your-newsletter-api-key"
๐ Usage
Generate Article Schema
use LaravelGPT\AiSeo\Facades\AiSeo; $schema = AiSeo::article() ->title('Your Article Title') ->description('Your article description') ->author('Author Name') ->publishDate(now()) ->generate();
Generate OpenGraph Tags
use LaravelGPT\AiSeo\Facades\AiSeo; $tags = AiSeo::openGraph() ->title('Your Page Title') ->description('Your page description') ->image('https://example.com/image.jpg') ->generate();
Generate Meta Tags
use LaravelGPT\AiSeo\Facades\AiSeo; $tags = AiSeo::meta() ->title('Your Page Title') ->description('Your page description') ->keywords('keyword1, keyword2, keyword3') ->generate();
AI-Powered Content Analysis
use LaravelGPT\AiSeo\Facades\AiSeo; $analysis = AiSeo::analyze() ->content('Your content here') ->keywords(['keyword1', 'keyword2']) ->generate();
Real-Time SEO Analysis
use LaravelGPT\AiSeo\Facades\AiSeo; $analysis = AiSeo::realtime() ->url('https://example.com') ->analyze();
In Blade Views
@seo([ 'title' => 'Your Page Title', 'description' => 'Your page description', 'keywords' => 'keyword1, keyword2, keyword3', 'author' => 'Author Name', 'publishDate' => now(), 'image' => 'https://example.com/image.jpg' ])
๐งช Testing
composer test
๐ค Contributing
Please see CONTRIBUTING.md for details.
๐ Security
If you discover any security related issues, please email security@laravelgpt.com instead of using the issue tracker.
๐ฅ Credits
๐ License
The MIT License (MIT). Please see License File for more information.