Download the PHP package vulpo/seo-and-geo without Composer

On this page you can find all versions of the php package vulpo/seo-and-geo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package seo-and-geo

SEO & GEO

One addon for everything a Statamic site needs to be found: meta tags, an XML sitemap, redirects, structured data, robots.txt, and llms.txt.

It replaces the stack many Statamic sites run today. Use it instead of separate meta, sitemap, redirect, and GEO addons. You get one set of settings, one CP section, and one template tag. Data from those addons is read as a fallback, and a migration command moves it over.

Features

Live previews. A read-only field sits at the top of every SEO tab. It shows the Google result and the social card as the editor types. Titles and descriptions are truncated by measured pixel width, which matches how Google cuts them. It warns when the description is missing, the title is too long, or the page is hidden from search. The social card updates as soon as the image is picked, before the entry is saved. The Google preview shows no image on purpose. Google takes its thumbnail from the page content, not from the sharing image.

Meta tags. Title, description, canonical, robots, Open Graph, Twitter cards, hreflang, and search console verification from one tag. Per-page fields override site-wide defaults. Each site can override those defaults again.

Sitemap. Served at /sitemap.xml and built from published, routable entries. Taxonomy terms are optional. Set "leave out of the sitemap" per page, or exclude whole collections. On a multisite install it emits xhtml:link hreflang alternates. When the URLs no longer fit one file it becomes a sitemap index (/sitemap-1.xml, and so on). It is cached and flushed when content changes.

Redirects. A CP screen with exact, wildcard, and regex rules (301, 302, 410). Each rule is scoped to one site or to all of them. Query strings are supported, so legacy /index.php?id=42 URLs can be matched. Redirects are checked only when a URL would otherwise 404, so normal page loads pay nothing. When a page's URL changes through a renamed slug, a move in the structure, or a changed date, a redirect is created automatically for that site. A wildcard rule is added for its children too.

404 log. Every miss is logged per site with hit counts and referrer. The log is searchable and paginated, and any entry can be turned into a redirect in one click.

Structured data (JSON-LD). Organization or LocalBusiness, WebSite, BreadcrumbList, and a per-page FAQ, Article, Service, Person, Product, or Event node. A raw JSON-LD field covers anything else. Coordinates are geocoded from the address for free through OpenStreetMap and cached.

llms.txt. Served at /llms.txt, describing the site and its pages for AI assistants. The summary is editable.

robots.txt. Served from the CP when there is no public/robots.txt. It includes an AI crawler policy: allow all, block all, or pick.

AI crawler log. See which assistants (ChatGPT, Claude, Perplexity, Gemini, and others) actually read the site.

Dashboard widgets. Recent 404s and AI crawler activity, so problems surface without going looking.

Installation

Working on the addon from a local checkout instead? Point a path repository at it and require "vulpo/seo-and-geo": "@dev":

Then add the tag to your layout's <head>:

vulpo:seo:index-uris records where every page currently lives. Automatic redirects compare against that index, so run it once after installing. It maintains itself afterwards.

Settings live in the control panel under Tools → SEO. The SEO and Structured data tabs are added to every entry and term blueprint automatically.

To put the widgets on the dashboard, add them in config/statamic/cp.php:

On a multi-site install, SEO → Settings → Sites takes a row per site. There you can override the site name, default description, sharing image, business details, and llms.txt summary. Anything left empty falls back to the global value.

Tags

Tag Output
{{ vulpo_seo }} Meta tags and JSON-LD, everything for the <head>
{{ vulpo_seo:meta }} Meta tags only
{{ vulpo_seo:schema }} JSON-LD only
{{ vulpo_seo:title }} The resolved page title, as text
{{ vulpo_seo:description }} The resolved page description, as text
{{ vulpo_seo:image }} The resolved social image URL

In Blade:

Migrating from SEO Pro, vulpo/geo or other SEO addons

The command renames legacy field handles on every entry and term (geo_faqs becomes seo_schema_faqs, and so on). It copies the old global settings into the addon settings, and it imports any redirects it finds.

SEO Pro keeps everything in one seo array per entry, so it is translated rather than renamed. title, description, canonical_url, image, robots_indexing/robots_following, sitemap, priority, change_frequency, and json_ld_schema are all mapped over. Its site defaults are read from resources/addons/seo-pro.yaml. Two things are not carried over, because they would render literally in a meta tag: values pointing at another field (@seo:content/title) and values containing Antlers. The seo array itself is left in place, so SEO Pro keeps working if you have not removed it yet.

Until you run the migration, legacy handles are still read at render time. This includes SEO Pro's seo array, so nothing breaks the moment you swap addons. Set legacy_fallbacks to false in the config once you have migrated.

Replace {{ seo_pro:meta }} and {{ structured_data }} in your layout with {{ vulpo_seo }}. Then remove the old addons from composer.json.

Bulk redirects from a CSV

Columns are from,to,status,site. A header row is optional, and source/destination/code are accepted as aliases. A * in the source path makes it a wildcard rule. Rows missing a source or destination are skipped and counted rather than failing the import.

Configuration

Editor-facing options live in the control panel. Developer options live in config/seo-and-geo.php: routes, caching, field injection, structured data, and the AI crawler list. Statamic derives the slug from the package name, so the config key is seo-and-geo.

To customise the injected fields:

Published blueprints in resources/blueprints/vendor/vulpo-seo/ win over the addon's own.

Field handles

Handle Purpose
seo_title, seo_description, seo_image Search results and sharing previews
seo_canonical, seo_noindex, seo_nofollow Indexing
seo_sitemap_exclude Leave the page out of the sitemap
seo_schema_type + seo_schema_* Per-page structured data
seo_schema_custom Raw JSON-LD, merged in as its own node
seo_preview The live Google and social preview (stores nothing)

Where data lives

Flat file by default:

What Where
Settings resources/addons/seo-and-geo.yaml
Redirects content/vulpo-seo/redirects.yaml
404 log, AI crawler log, URL index storage/app/vulpo-seo/

Settings and redirects belong in version control. The files in storage do not.

With statamic/eloquent-driver

The addon follows the site. Install the eloquent driver and switch any of its repositories to eloquent, and everything the addon owns moves to the database too. No configuration is needed:

What Where
Entry and term SEO fields Wherever Statamic stores entries and terms
Settings addon_settings table, through Statamic's own settings repository
Redirects vulpo_seo_redirects
404 log vulpo_seo_not_found
AI crawler log vulpo_seo_ai_crawlers
URL index vulpo_seo_uris

The addon's migrations load only when its storage resolves to eloquent, so a flat-file project never sees them. On a database site:

Going the other way, php please vulpo:seo:export-to-files writes the database rows back out as YAML.

import-to-database leaves the flat files alone, so switching back is a config change. Re-running it updates rather than duplicating.

Override the detection when you want to decide yourself:

or set VULPO_SEO_STORAGE_DRIVER=eloquent in .env. Table names are configurable in the same block.

Notes and limits

Translations

Every string the addon renders goes through __(), and English lives in lang/en.json. To translate it, publish that file and drop your own locale next to it:

Permissions

Permission Allows
view vulpo seo Opening the settings, redirects, 404 log and crawler screens
edit vulpo seo Saving redirects, dismissing 404s, clearing logs

A role with only the view permission sees the data and no write controls.

Pages that are not entries

The addon reads a page's SEO off the entry behind it. A route with no entry -- a product served from an API, a search results page -- can say the same things through the Seo facade, and the layout keeps calling {{ vulpo_seo }} unconditionally.

Precedence, highest first: Seo::override(), the page's own fields, legacy handles, SEO Pro's seo array, Seo::defaults(), the control panel settings.

Don't branch away from {{ vulpo_seo }} to hand-write a head. That is what the facade replaces, and the branch costs the page its Organization, its WebSite, the Twitter card, og:site_name, og:locale and every verification tag.

Seo::for($object) is the same thing for a class implementing ProvidesSeo. Seo::noindex() and the seo.noindex middleware keep a route out of the index; noindex_paths in the settings does it by path pattern. None of them add a robots.txt Disallow, deliberately: a crawler has to be allowed to fetch a URL in order to read the instruction not to index it.

Structured data

Nodes go out as a single @graph so they can reference each other by @id. seo-and-geo.schema.graph reverts to one <script> per node.

Builders available: ProductNode, OfferNode, AggregateOfferNode, ItemListNode, CollectionPageNode, BreadcrumbListNode, FaqPageNode, plus ShippingDetails and ReturnPolicy. Each returns nothing at all when its minimum viable data is missing -- an invalid node costs the page its whole rich result, an absent one costs only itself.

Values are validated on the way in: prices normalise to a dot decimal, dates to ISO-8601, GTINs are checked against their check digit. A value schema.org would reject is dropped. Set seo-and-geo.schema.strict (or VULPO_SEO_SCHEMA_STRICT) in your test suite to have it throw instead, so a malformed price fails CI rather than a product page.

Shipping and returns come from the Shop settings tab unless an offer says otherwise, since they are facts about the shop rather than about one product.

Contributing URLs to the sitemap and llms.txt

The addon can only see entries and terms. Anything else a site serves has to say so:

Register by class string; it doubles as the cache key and keeps a package that registers twice from counting twice. Providers yield, so a paginated API does not have to be buffered, and they are only resolved when something is actually being built.

When a provider throws, its last successful result is served instead and the combined file is cached for retry_minutes rather than the full hour. This is deliberate: a sitemap that shrinks does not read as "the source is down", it reads as "these pages are gone".

Implement LlmsFullProvider as well to list more in /llms-full.txt than belongs in /llms.txt. The short file is meant to be read whole, so entries fill its budget first and no single heading may crowd out the rest.

Sitemap::flushProvider($key) and LlmsTxt::flushProvider($key) invalidate one provider's slice, for a package with its own webhook.

Extending

The preview field is a normal fieldtype. You can move it, drop it, or add it to a blueprint of your own by publishing the blueprints and editing them.

The control panel script is buildless on purpose. resources/js/cp.js registers the preview component through the globals Statamic exposes (window.Statamic.$components, window.Vue, window.__STATAMIC__). That means there is no npm dependency, no Vite config, and no bundle to rebuild when Statamic ships a new minor version. Because addon scripts load before the control panel's own modules, the script waits for window.Statamic to appear rather than assuming it is there. It is published to public/vendor/seo-and-geo/js/ by php please statamic:install or php artisan vendor:publish --tag=seo-and-geo --force.

Testing

Releasing

Releasing is merging.

Write the release notes under ## Unreleased in CHANGELOG.md as you go. When it is time to ship, open a pull request that puts a version heading under them:

Merging it runs the suite, tags v2.0.0, and creates the GitHub release using the notes beneath that heading as its body. Packagist picks the tag up on its own. ## 2.0.0 - 2026-10-08 works too, if you want the date in the file.

An ordinary merge releases nothing: the workflow looks for the newest heading that names a version, and does nothing if that version is already tagged. ## Unreleased is skipped rather than read as a stop sign, so it can stay at the top of the file permanently.

That keeps the question of whether something is a major, a minor or a patch where it belongs — with a person, in a diff somebody reviews — while costing one line rather than a trip to the Actions tab.

Nothing is tagged until the tests pass, and re-running is safe: a tag that already exists is a no-op.

If Packagist ever falls behind — it will tell you by not having the version — run Update Packagist from the Actions tab. It needs PACKAGIST_USERNAME and PACKAGIST_TOKEN, which are organisation secrets rather than repository ones.

Credits

Built by Vulpo.

License

MIT. See LICENSE.md.


All versions of seo-and-geo with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
statamic/cms Version ^6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package vulpo/seo-and-geo contains the following files

Loading the files please wait ...