Download the PHP package silvershop-suite/seo without Composer

On this page you can find all versions of the php package silvershop-suite/seo. 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

silvershop-suite/seo

Centralised SEO for SilverShop (SilverStripe CMS 6). It makes SEO a first-class, installable layer instead of markup baked into the theme or scattered across feature modules. It owns:

  1. Per-page meta — canonical, meta robots (index/follow), OpenGraph and Twitter cards, with sensible auto-defaults and a social-image fallback chain.
  2. One JSON-LD @graph — a single, coherent structured-data document assembled from pluggable providers (Product/Offer, Organization/WebSite, BreadcrumbList, category ItemList), enriched from other modules (reviews, brands, …) without editing them.
  3. Sitemap + robots.txt — an XML sitemap (built on wilr/silverstripe-googlesitemaps) and a generated robots.txt.

It builds on the CMS 6 updateMetaComponents hook, so a theme only needs the standard $MetaTags in its <head> — nothing else to wire up.

Requirements

Installation

Then run a dev/build (/dev/build?flush=1). The extensions are applied automatically to SiteTree and SiteConfig; a new SEO tab appears on every page and in Settings.

How it works

Meta (the SEO tab)

Every page gains an SEO tab with:

Site-wide defaults live in Settings → SEO: a default share image, the Twitter site handle, the organization's social-profile URLs (sameAs), and an optional hand-written robots.txt.

The social-image fallback chain is: page OG image → the product's primary / gallery image → SiteConfig default share image → store-profile logo.

All of this is emitted through SiteTree::updateMetaComponents() as structured tag descriptors, so output is clean, de-duplicated and theme-independent.

Structured data — the StructuredDataProvider contract

The JSON-LD @graph is assembled by JsonLdGraphService from the providers registered in StructuredDataRegistry. Each provider implements:

Nodes that share an @id are merged, so an enrichment fragment (e.g. an aggregateRating) lands inside the node another provider created rather than producing a second, competing node. SeoContext mints the shared @ids (…/#product, …/#organization, …/#website, …/#breadcrumbs) so every provider agrees.

Register your own provider in config:

Bundled providers

Provider Nodes / fragments Active when
OrganizationProvider Organization + PostalAddress + WebSite (+ SearchAction) always (store-profile data when present, else SiteConfig title)
ProductProvider Product + Offer (price, currency, availability, SKU, condition, seller) + BreadcrumbList on SilverShop\Page\Product
ListingProvider ItemList + BreadcrumbList on SilverShop\Page\ProductCategory
ReviewsAdapterProvider aggregateRating + review[] → Product node; shop aggregateRating → Organization node silvershop-suite/reviews installed
BrandAdapterProvider brand → Product node silvershop-suite/brands installed, product has a brand
ArticleProvider BlogPosting silverstripe/blog installed
EventProvider Event an events page class is listed in event_classes

The reviews, brands, blog and events integrations are seo-side adapters: they read the other module's data behind a class_exists guard and contribute to the graph without editing that module. They are dormant (and emit nothing) when the module is absent. Offer availability (InStock / OutOfStock) is read from silvershop/stock when present.

Known caveat — reviews double-emit

silvershop-suite/reviews still prints its own standalone <script type="application/ld+json"> on product and shop pages. With both modules installed, a page therefore emits the rating twice: once inside this module's @graph, once in the reviews module's own block. Google tolerates duplicate aggregateRating, but the clean fix is a coordinated reviews release in which reviews implements this contract and self-suppresses its standalone markup when silvershop-suite/seo is present. That is a documented follow-up; this module does not (and must not) edit reviews.

Sitemap

The XML sitemap is served at /sitemap.xml by wilr/silverstripe-googlesitemaps, which already includes every published page — Products, ProductCategories, brand pages and content pages are all SiteTree, so they are covered out of the box (respecting ShowInSearch), and each page's primary image is included. This module additionally excludes noindex pages so the sitemap matches the robots directives.

robots.txt

/robots.txt is served by RobotsController. By default it references the sitemap and disallows the cart, checkout, account and search pages (resolved from their live URLs). A merchant can supply a full custom body in Settings → SEO → Custom robots.txt.

Configuration reference

Multi-locale (hreflang)

tractorcow/silverstripe-fluent is not required. hreflang alternates and locale-correct canonicals are intended as a guarded, forward-looking addition that activates when Fluent is installed.

Theme note

Per the storefront direction, the theme renders no JSON-LD and defers to this module: it only needs the standard $MetaTags in <head>. Core's inline microdata can stay as a no-JS fallback; the JSON-LD @graph is the single source of truth where they overlap.

License

BSD-3-Clause.

Credits

Built and maintained by Remy Vaartjes ([email protected]) — part of the SilverShop-Suite.


All versions of seo with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
silverstripe/framework Version ^6.0
silverstripe/cms Version ^6.0
silvershop/core Version ^6
wilr/silverstripe-googlesitemaps Version ^4
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 silvershop-suite/seo contains the following files

Loading the files please wait ...