PHPackages                             kaiopiola/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. kaiopiola/seo

ActivePackage[Utility &amp; Helpers](/categories/utility)

kaiopiola/seo
=============

SEO Generator

v1.1(4y ago)17[1 issues](https://github.com/kaiopiola/seo-package/issues)MITPHPPHP ^7.4|^8.0

Since Jan 14Pushed 4y ago1 watchersCompare

[ Source](https://github.com/kaiopiola/seo-package)[ Packagist](https://packagist.org/packages/kaiopiola/seo)[ RSS](/packages/kaiopiola-seo/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)DependenciesVersions (5)Used By (0)

SEO
===

[](#seo)

[![](https://camo.githubusercontent.com/d1b8ce215d279e7969f7ed203d51d55a46ce6b1900624520f5b359745395b3d7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b61696f70696f6c612f73656f3f636f6c6f723d2532333030464646)](https://packagist.org/packages/kaiopiola/seo)[![](https://camo.githubusercontent.com/0d5291a3f4f5e6d7093cc3f7b833c6a200e2dc0b6aa47d13ee3a59abdb9e6692/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b61696f70696f6c612f73656f3f636f6c6f723d253233383838383838266c6162656c3d76657273696f6e)](https://packagist.org/packages/kaiopiola/seo)[![](https://camo.githubusercontent.com/33707ee5e5436c8d99dbcd1849feab68d2bd1fa315fe85f63c4167fc7481cb51/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6b61696f70696f6c612f73656f)](https://packagist.org/packages/kaiopiola/seo)

[![](https://raw.githubusercontent.com/yammadev/flag-icons/master/svg/US.svg)](https://raw.githubusercontent.com/yammadev/flag-icons/master/svg/US.svg) en-US
-------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#-en-us)

***This plugin is under development and may exhibit unexpected behavior while using it, please report any bugs or errors you find when using this solution, so that we can make it the best possible for your use!***

The SEO plugin is a simple HTML SEO generator for your website. The plugin is able to generate meta tags like the example below:

```
    PAGE TITLE

```

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

[](#installation)

Fisrt, run the following command in your project:

```
composer require kaiopiola/seo
```

Then, call the main class on the PHP file you want to load it:

```
use Kaiopiola\Seo\Seo;
```

How SEO plugin works
--------------------

[](#how-seo-plugin-works)

### How to setup the plugin

[](#how-to-setup-the-plugin)

To setup the SEO plugin, just instantiate the class in a variable, and then define its configuration parameters, as shown in the example below:

```
# Instantiating class in a variable:
$seo = new Seo;

# Setting parameters:
$seo->setMeta("title", "PAGE TITLE"); // Page title
$seo->setMeta("description", "PAGE DESCRIPTION"); // Page description
$seo->setMeta("tags", "TAG 1, TAG 2, ANOTHER TAG"); // Page keywords
$seo->setMeta("image", "IMAGE URL"); // Main image to represent current page
$seo->setMeta("locale", "LOCALE"); // Will use current detected locale if not set
$seo->setMeta("url", "PAGE URL"); // Will use current page URL if not set
$seo->setMeta("canonical", "CANONICAL URL"); // Will use "url" if not set

# Optional - Facebook OpenGraph Settings

$seo->setMeta("og_title", "OG TITLE"); // Will use "title" if not set
$seo->setMeta("og_type", "OG TYPE"); // NULL if not set. Please check OpenGraph docs to fill this field
$seo->setMeta("og_site_name", "OG SITENAME"); // OpenGraph site name. NULL if not set
$seo->setMeta("og_url", "OG CANONICAL URL"); // OpenGraph canonical URL, will use "url" if not set
$seo->setMeta("og_image", "OG IMAGE URL"); // Will use "image" if not set
$seo->setMeta("og_description", "OG DESCRIPTION"); // Will use "description" if not set
$seo->setMeta("og_locale", "OG LOCALE"); // Will use "locale" if not set

// You can also set Open Graph values automatically, according to main Setting parameters, as below:
$seo->autoSetOpengraph();

# Optional - Twitter Settings

$seo->setMeta("twitter_title", "TWITTER TITLE"); // Will use "title" if not set
$seo->setMeta("twitter_description", "TWITTER DESCRIPTION"); // Will use "description" if not set
$seo->setMeta("twitter_image", "TWITTER IMAGE URL"); // Will use "image" if not set
$seo->setMeta("twitter_url", "TWIITER CANONICAL URL"); // Twitter canonical URL, will use "url" if not set
$seo->setMeta("twitter_card", "TWITTER CARD TYPE"); // Twitter Card type, will use SUMMARY by default if not set

// You can also set Twitter values automatically, according to main Setting parameters, as below:
$seo->autoSetTwitter();

# Render the values
$seo->render();
```

### Where to place the rendered values?

[](#where-to-place-the-rendered-values)

You must place the render result in the section of your HTML code, like the example below:

```
>

    render(); ?>

    Example

```

Considerations
--------------

[](#considerations)

This project is open to contributions, whether with suggestions or improvements to the code of any kind. Feel free to participate in its development.

License
-------

[](#license)

MIT License (MIT). Please, read the [License File](LICENSE) for more informations.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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 ~8 days

Total

3

Last Release

1568d ago

Major Versions

v0.1 → v1.02022-01-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/0f0f4bb2c5bee06a36de3ef70e18517c6416a5b494062b5b86647df4f24669d4?d=identicon)[kaiopiola](/maintainers/kaiopiola)

---

Top Contributors

[![kaiopiola](https://avatars.githubusercontent.com/u/35163593?v=4)](https://github.com/kaiopiola "kaiopiola (11 commits)")

---

Tags

phpseo

### Embed Badge

![Health badge](/badges/kaiopiola-seo/health.svg)

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

###  Alternatives

[nwidart/laravel-menus

Laravel Menu management

168180.3k10](/packages/nwidart-laravel-menus)

PHPackages © 2026

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