Download the PHP package marblecms/marble-seo without Composer

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

Marble SEO

SEO metadata management, XML sitemap, robots.txt, and structured data (JSON-LD) for Marble CMS.

Installation

Add to your composer.json repositories and require:

Optionally publish the config:

Configuration (config/seo.php)

Key Default Description
sitemap_exclude_blueprints [] Blueprint identifiers to omit from the sitemap
og_default_image '' Fallback og:image URL
robots_txt null Custom robots.txt content (string or array of lines); null = allow all + sitemap link
json_ld_enabled true Output JSON-LD structured data
sitemap_cache_seconds 21600 Sitemap cache TTL in seconds (6 h)

Usage

Blade component

Drop the component inside your <head> tag:

With an explicit language:

Without an item (static pages):

The component outputs:

Admin UI

Navigate to Structure → SEO in the Marble admin. Each published item shows a coverage indicator (green tick / dash) per language. Click the edit button to manage per-item, per-language SEO fields:

Sitemap

Auto-generated at /sitemap.xml. Includes all published items, all languages, with xhtml:link alternate tags. Cached for 6 hours. Cache is invalidated automatically when any item is published.

robots.txt

Served at /robots.txt. Default content:

Override via config('seo.robots_txt').

Events

The plugin listens to Marble\Admin\Events\ItemPublished and automatically invalidates the sitemap cache.

Artisan Commands

Command Description
marble:seo:install Run SEO migrations

Database

seo_meta — one row per item per language.

Column Type Notes
id bigint PK
item_id bigint FK → items (cascade delete)
language_id bigint FK → languages (cascade delete)
title string nullable
description string(500) nullable
og_image_url string nullable
noindex boolean default false
canonical_url string nullable
created_at / updated_at timestamps

Unique constraint on (item_id, language_id).


All versions of marble-seo with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
marble/admin Version dev-main
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 marblecms/marble-seo contains the following files

Loading the files please wait ...