New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

particle-academy/fancy-seo

Server-rendered SEO + crawlability for Laravel + Inertia apps — per-route meta/Open Graph/Twitter/JSON-LD on the first byte, dynamic sitemap.xml / robots.txt / llms.txt, and per-page Markdown. The PHP baseline that pairs with @particle-academy/fancy-inertia's .
1,722 2

Larablocks Analysis

particle-academy/fancy-seo works with Laravel 13 (latest release v0.7.0, Nov 20, 2026).

Laravel 11 and 12 in earlier releases.

Promising: maintained and up to date, meets 2 of 4 checks; not yet widely used.

  • Works with Laravel 13, the current version
  • Released in the last 12 months (Nov 20, 2026)
  • 510 downloads a month (needs 10,000)
  • 2 GitHub stars (needs 100)

State

Actively maintained
  • Last stable release: Nov 20, 2026.
  • 8 releases in the last 12 months.
  • First released: Jun 14, 2026.
  • Monthly downloads: 510, up 426% from six months ago.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.

Install
composer require particle-academy/fancy-seo
Latest Version:v0.7.0
PHP:^8.4
Laravel:13
Older releases:11 · 12
License:MIT
Last Updated:Nov 20, 2026
Links: GitHub  ·  Packagist
Maintainer: wishborn

particle-academy/fancy-seo

Fancified

Server-rendered SEO + crawlability for Laravel + Inertia apps.

An Inertia/React SPA applies per-page <Head> meta after hydration — so a crawler, social scraper, or LLM bot that hits a URL sees only the bare root view on the first byte. fancy-seo computes the per-route head (title, description, canonical, Open Graph, Twitter, JSON-LD) on the server and renders it into the first byte, plus a dynamic sitemap.xml / robots.txt / llms.txt and an optional per-page Markdown variant.

It's the PHP baseline that pairs with @particle-academy/fancy-inertia/seo's client <Seo> component: the package renders the default head; <Seo> overrides it per page via Inertia's head-key dedupe.

For agents. This package is listed on the Fancy MCP catalog server at https://ui.particle.academy/mcp (streamable HTTP, no API key; MCP id fancy-ui), with install commands and docs, alongside the rest of the kit. How an agent installs and uses this package is in AGENTS.md.

Install

composer require particle-academy/fancy-seo

Laravel auto-discovers the service provider + FancySeo facade. Publish the config if you want to tune it:

php artisan vendor:publish --tag=fancy-seo-config

Wire it up

1. Drop the head component into your root Blade template (e.g. app.blade.php), inside <head>:

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <x-fancy-seo::head />

    @vite(['resources/js/app.tsx'])
    @inertiaHead
</head>

That renders <title>, description, canonical, robots, the full Open Graph + Twitter set, the llms.txt alternate link, and one <script type="application/ld+json"> per JSON-LD node — all from the resolved per-route payload.

2. Register defaults + per-route SEO from a service provider:

use FancySeo\Facades\FancySeo;
use FancySeo\JsonLd;

FancySeo::defaults([
    'site_name' => 'Fancy Dev Kit',
    'image' => '/og/default.png',
    'twitterSite' => '@particleacademy',
    'jsonLd' => [
        JsonLd::website('Fancy Dev Kit', url('/'), searchUrlTemplate: url('/search?q={search_term_string}')),
        JsonLd::softwareApplication('Fancy Dev Kit', url('/'), ['applicationCategory' => 'DeveloperApplication', 'operatingSystem' => 'Web', 'price' => '0']),
    ],
]);

FancySeo::route('packages.show', fn (array $params) => [
    'title' => "{$params['package']} — Fancy Dev Kit",
    'jsonLd' => [JsonLd::softwareSourceCode($params['package'], url("/packages/{$params['package']}"), "https://github.com/Particle-Academy/{$params['package']}", ['programmingLanguage' => 'TypeScript'])],
]);

FancySeo::noindexRoutes(['admin.*', 'auth.*']);

A controller can also set the payload for the current request:

FancySeo::for(['title' => $post->title, 'description' => $post->excerpt, 'type' => 'article']);

Precedence: defaults() → per-route resolver → resolveUsing() → for(). jsonLd accumulates across layers; everything else overrides.

Discovery endpoints

Auto-registered (toggle each in config/fancy-seo.php):

Route What
/sitemap.xml every URL you register via FancySeo::sitemap(...) — paths in robots_txt.disallow are auto-excluded (a sitemap must never advertise a blocked path)
/robots.txt crawl policy — welcomes LLM bots (each gets its own group with the disallow set re-applied, so a private path can't leak), references the sitemap
/llms.txt, /llms-full.txt the llmstxt.org Markdown index you register via FancySeo::llms(...)
/.well-known/security.txt RFC 9116 (only when a contact is configured)
/humans.txt colophon
/{path}.md per-page raw Markdown (opt-in) via FancySeo::markdownUsing(...); your own .md routes take precedence

Delete public/robots.txt. The Laravel skeleton and the Fancy starter kit ship one, and the web server serves files in public/ before Laravel runs, so fancy-seo's /robots.txt never answers while it exists. Remove it, and any public/sitemap.xml, public/llms.txt or public/humans.txt you want fancy-seo to serve instead.

Well-known files vs. SEO meta. fancy-seo's job is the per-route SEO <head> + JSON-LD + the dynamic sitemap data. For richer, leak-proof management of the files — robots / sitemap / security / humans / llms / AGENTS with an admin-editable model and a protect() rail that keeps private paths disallowed for every bot group — pair it with particle-academy/fancy-x-files: turn off the routes you delegate (config/fancy-seo.php → routes) and let x-files own them, feeding it FancySeo::sitemapUrls() for a dynamic, leak-safe sitemap. That is the recommended pairing — fancy-seo for meta, x-files for files.

FancySeo::sitemap(function ($map) {
    $map->add('/', '1.0', 'daily');
    foreach (Package::all() as $pkg) {
        $map->add("packages/{$pkg->slug}", '0.8');
    }
});

// A provider ADDS to the builder. It must not RETURN its urls -- the return
// value is discarded, and `fn () => ['/', '/about']` used to produce a valid,
// EMPTY sitemap answering 200, which is indistinguishable from a site with
// nothing to list. Since 0.6.0 that throws instead of going quiet. Returning the
// builder is fine: `fn ($map) => $map->add('/')` is the idiomatic chain.
FancySeo::sitemap(fn ($map) => $map->addMany(['/', '/about']));   // many at once

FancySeo::llms(fn (FancySeo $seo) => view('seo.llms')->render());

FancySeo::markdownUsing(fn (string $path) => MarkdownContent::for($path)); // null → 404

JSON-LD builders

FancySeo\JsonLd mirrors @particle-academy/fancy-inertia/seo's builders — website, organization, softwareApplication, softwareSourceCode, article, breadcrumbList, faqPage, howTo, collectionPage. Each returns a plain array with the @context/@type set; pass them to defaults() / route() / for().

howTo() and faqPage() no longer render as Google rich results, but the markup still strengthens machine understanding + AI answers — emit them only on pages whose visible content genuinely is an ordered how-to / Q&A.

Social images

Set richer Open Graph / Twitter card metadata via the resolved payload (or the image_alt / image_width / image_height / image_type config defaults):

FancySeo::for([
    'image' => '/og/react-fancy.png',
    'imageAlt' => 'react-fancy — Tailwind v4 React primitives',
    'imageWidth' => 1200,
    'imageHeight' => 630,
    'imageType' => 'image/png',
]);

The head component emits og:image:alt|width|height|type + twitter:image:alt. Declaring the real card dimensions (1200×630) + MIME type helps scrapers like LinkedIn pick the large-card layout instead of falling back to a small square.

Content Security Policy

Under a strict script-src 'nonce-…' CSP, pass the nonce so the inline JSON-LD isn't dropped: <x-fancy-seo::head :nonce="$cspNonce" /> (or set a static fancy-seo.csp_nonce in config).

Validate in CI

php artisan fancy-seo:validate lints every parameter-less, named GET route the way <x-fancy-seo::head> renders it — missing/duplicate titles, thin or over-long descriptions, missing/relative canonicals, noindex leaks, and malformed JSON-LD. Use --format=json|junit for machine output and --strict to fail on warnings:

- run: php artisan fancy-seo:validate --format=junit --strict

Roadmap

Not yet shipped (open an issue if you need them sooner):

  • hreflang locale clusters + reciprocal x-default (for multilingual sites).
  • Sitemap index / chunking for sites above the 50k-URL per-file limit.

License

MIT


⭐ Star Fancy Dev Kit

If this package is useful to you, a quick ⭐ on the repo really helps us build a better kit. Thank you!

Alternatives to particle-academy/fancy-seo

artesaos/seotools

SEO Tools for Laravel and Lumen

6,227,031 3,371
spatie/laravel-robots-middleware

Add an `all` or `none` robots header to your requests via a middleware in Larave...

2,550,320 333
honeystone/laravel-seo

SEO metadata and JSON-LD package for Laravel.

152,481 360
rankbeam/laravel-seo

Laravel SEO package for metadata, canonical URLs, Open Graph, linked JSON-LD, XM...

3,524 5
j87nl/laravel-cms

Block-based CMS core for Laravel: pages, blocks and server-side public rendering...

1,435 0

Version History

Version Released PHP Laravel License
v0.7.0 ^8.4 ^13.0 MIT
v0.6.0 ^8.4 ^13.0 MIT
v0.5.0 ^8.4 ^13.0 MIT
v0.4.0 ^8.2 ^11.0|^12.0|^13.0 MIT
v0.3.0 ^8.2 ^11.0|^12.0|^13.0 MIT