PHPackages                             fm-labs/cakephp-seo - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. fm-labs/cakephp-seo

ActiveCakephp-plugin[Utility &amp; Helpers](/categories/utility)

fm-labs/cakephp-seo
===================

Seo plugin for CakePHP

1.2.0(3y ago)069MITPHPPHP &gt;=8.0

Since Dec 14Pushed 3y ago2 watchersCompare

[ Source](https://github.com/fm-labs/cakephp-seo)[ Packagist](https://packagist.org/packages/fm-labs/cakephp-seo)[ RSS](/packages/fm-labs-cakephp-seo/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

Seo plugin for CakePHP
======================

[](#seo-plugin-for-cakephp)

Installation
------------

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require fm-labs/cakephp-seo

```

Features
--------

[](#features)

- Robots.txt generator
- XML Sitemap generator
- XML Sitemap Index generator
- XML Sitemap schema validation
- Sitemaps support for XSL stylesheets
- TXT Sitemap Genrator
- Google Analytics Tracking

Usage
-----

[](#usage)

Robots TXT
----------

[](#robots-txt)

The URL `/robots.txt` is automatically routed by the `Seo` plugin to the `RobotsController`.

By default, the `sitemapUrl` parameter is mapped to the `SitemapController`. Override this, if you want to implement your own SitemapController and/or want to use your own route.

Supports following directives:

DirectiveConfig keyDescriptionSitemapsitemapUrlSome crawlers support a Sitemap directive, allowing multiple Sitemaps in the same robots.txt in the form Sitemap: full-urlHosthostNameSome crawlers (Yandex) support a Host directive, allowing websites with multiple mirrors to specify their preferred domainCrawl-delaycrawlDelayThe crawl-delay value is supported by some crawlers to throttle their visits to the host. Since this value is not part of the standard, its interpretation is dependent on the crawler reading it.Allow/Disallow rulesrulesList of rules. See examples.### Configuration

[](#configuration)

```
Configure::write('Seo.RobotsTxt', [
    'sitemapUrl' => '/path/to/custom/sitemap.xml',
    'crawlDelay' => 10,                 // Crawl-delay in seconds
    'rules' => [
        '*' => [                        // Default / All user agents
            '/' => true,                // Allow
        ],
        'google-bot' => [               // User agent
            '/' => true,                // Allow
            '/private' => false,        // Disallow
        ],

    ]
])
```

### Events

[](#events)

The `RobotsTxtBuilder` dispatches the `Seo.RobotsTxt.build` event, which can be used to modify the builder state via the event system.

```
\Cake\Event\EventManager::instance()->on('Seo.RobotsTxt.build', function($event) {
    $robotsTxt = $event->getSubject();

    $rules = []; // put your rules here
    $robotsTxt->addRules($rules);
})
```

### Example output

[](#example-output)

```
Sitemap: /path/to/custom/sitemap.xml

User-agent: *
Allow: /

User-agent: google-bot
Allow: /
Disallow: /private

```

Sitemap XML
-----------

[](#sitemap-xml)

### Styling

[](#styling)

Built-in Stylesheets:

- style-pedro: [pedroborges/xml-sitemap-stylesheet](https://github.com/pedroborges/xml-sitemap-stylesheet)
- style-catcto : [catcto/sitemap-stylesheet](https://github.com/catcto/sitemap-stylesheet)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~25 days

Total

5

Last Release

1140d ago

PHP version history (2 changes)1.0.0PHP &gt;=7.2

1.2.0PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/2943299645214d8385310bf392bb94815a9cdea6e01f1b1aada4ce1d257fb291?d=identicon)[fm-labs](/maintainers/fm-labs)

---

Top Contributors

[![fm-labs](https://avatars.githubusercontent.com/u/5556440?v=4)](https://github.com/fm-labs "fm-labs (57 commits)")

### Embed Badge

![Health badge](/badges/fm-labs-cakephp-seo/health.svg)

```
[![Health](https://phpackages.com/badges/fm-labs-cakephp-seo/health.svg)](https://phpackages.com/packages/fm-labs-cakephp-seo)
```

###  Alternatives

[markstory/asset_compress

An asset compression plugin for CakePHP. Provides file concatenation and a flexible filter system for preprocessing and minification.

3761.0M11](/packages/markstory-asset-compress)[cakedc/cakephp-phpstan

CakePHP plugin extension for PHPStan.

40676.6k31](/packages/cakedc-cakephp-phpstan)[dereuromark/cakephp-dto

A CakePHP plugin for generating immutable Data Transfer Objects with full type safety

2988.9k3](/packages/dereuromark-cakephp-dto)[dereuromark/cakephp-geo

A CakePHP plugin around geocoding tools and helpers.

51174.9k4](/packages/dereuromark-cakephp-geo)[cakedc/enum

Enumeration list Plugin for CakePHP 5

30222.5k2](/packages/cakedc-enum)[josegonzalez/cakephp-environments

CakePHP plugin to handle environments-level configuration

4785.9k](/packages/josegonzalez-cakephp-environments)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
