SEO - v1.0.0

ArtisanPack UI SEO Documentation Home

Welcome to the documentation for ArtisanPack UI SEO, a comprehensive Laravel SEO management package. This package provides everything you need to optimize your Laravel application for search engines, including meta tag management, social media optimization, structured data, URL redirects, XML sitemaps, and more.

Table of Contents

Features

  • Meta Tag Management - Automatically generate or manually customize meta titles and descriptions for any Eloquent model
  • Social Media Optimization - Full support for Open Graph (Facebook, LinkedIn), Twitter Cards, Pinterest, and Slack
  • Schema.org / JSON-LD - 14 built-in schema types with customizable JSON-LD output
  • URL Redirects - Manage 301/302/307/308 redirects with exact, regex, and wildcard matching
  • XML Sitemaps - Generate standard, image, video, and news sitemaps with automatic sitemap index
  • Dynamic Robots.txt - Configure robots.txt with bot-specific rules and automatic sitemap inclusion
  • Multi-language Support - Hreflang tag management for international SEO
  • SEO Analysis - Built-in content analysis with 8 analyzers for SEO scoring
  • Livewire Components - Pre-built admin UI components for managing all SEO features
  • Blade Components - Simple view components for rendering SEO tags in your templates
  • Caching - Comprehensive caching system for optimal performance
  • Media Library Integration - Seamless integration with ArtisanPack UI Media Library for social images

Quick Example

// Add SEO capabilities to any model
use ArtisanPackUI\Seo\Traits\HasSeo;

class Post extends Model
{
    use HasSeo;
}

// Update SEO data
$post->updateSeoMeta([
    'meta_title' => 'My Amazing Post',
    'meta_description' => 'Learn about amazing things in this post.',
    'og_title' => 'My Amazing Post on Social',
    'schema_type' => 'Article',
]);
{{-- Render all SEO tags in your layout --}}
<head>
    <x-seo-meta :model="$post" />
</head>

Requirements

  • PHP 8.2 or higher
  • Laravel 10, 11, or 12
  • Livewire 3.x (for admin components)

Support

For bugs and feature requests, please open an issue on GitLab.

License

ArtisanPack UI SEO is open-sourced software licensed under the MIT license.