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 today

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 35% 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

1193d ago

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

1.2.0PHP &gt;=8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5556440?v=4)[fm-labs](/maintainers/fm-labs)[@fm-labs](https://github.com/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

[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

3361.0M51](/packages/dereuromark-cakephp-tools)[cakephp/bake

Bake plugin for CakePHP

11212.0M199](/packages/cakephp-bake)[dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

308954.9k25](/packages/dereuromark-cakephp-queue)[dereuromark/cakephp-ide-helper

CakePHP IdeHelper Plugin to improve auto-completion

1882.3M43](/packages/dereuromark-cakephp-ide-helper)[dereuromark/cakephp-dto

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

3099.1k6](/packages/dereuromark-cakephp-dto)[dereuromark/cakephp-tinyauth

A CakePHP plugin to handle user authentication and authorization the easy way.

131240.2k13](/packages/dereuromark-cakephp-tinyauth)

PHPackages © 2026

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