• Verified
  • Free plan

PHP SEO

Listed under GitHub repos

PHP SEO is an open source PHP library that generates schema.org JSON-LD, meta tags with Open Graph and X support, and XML sitemaps, and submits URLs through IndexNow and the Google Indexing API. It is free.

Best for

  • Developers

What PHP SEO does

PHP SEO is an MIT licensed PHP library installed with Composer. It builds the machine readable parts of on-page SEO from PHP objects: schema.org JSON-LD blocks, meta tags with X (Twitter) card and Open Graph markup, and XML sitemaps covering news, image, video and index files. It has no dependencies outside PHP itself.

Sitemaps can be written to a file, held in memory, or streamed, and one sitemap object can emit several files including multilingual variants. The library also wraps two submission protocols, IndexNow and the Google Indexing API, so URLs can be pushed to search engines after publication. A validator checks schema.org rich results output.

Key features

schema.org JSON-LD builder
Builds ld+json blocks from PHP objects such as Organization, Product and WebPage, with nested Thing types.
Meta tags with social markup
Generates page meta tags including X (Twitter) card and Open Graph tags for sharing previews.
XML sitemap types
Generates XML sitemaps including news, image, video and index sitemaps from a builder object.
Three output modes
Writes sitemaps to a file, holds them in memory, or streams output through a file handle.
Multilingual sitemap files
One sitemap object can emit multiple linked files, including multilingual variants.
IndexNow submission
Ships an IndexNowIndexer class that submits URLs to search engines using the IndexNow protocol.
Google Indexing API client
Includes a GoogleIndexer class for submitting URLs through the Google Indexing API.
Rich results validator
Lists a schema.org rich results validator among the library features.
Zero dependencies
The Composer package requires nothing beyond PHP itself.
LLMs.txt support
README has an AI LLMs.txt support section for sites that publish an LLMs.txt file.

How it works

  1. Install the package with Composer using composer require melbahja/seo.
  2. Instantiate a builder class such as Sitemap, Schema or a meta tag builder in PHP.
  3. Pass a base URL and options, then add URLs or objects through builder methods.
  4. Choose an output mode: file, memory or stream, depending on how the result is served.
  5. Echo the generated markup into the page, or write sitemap files to disk.
  6. For indexing, pass URLs to GoogleIndexer or IndexNowIndexer.

Plans and pricing

Distributed free under the MIT licence; the repository lists sponsors but no paid plans.

Integrations and platforms

Works with

  • IndexNow
  • Google Indexing API
  • schema.org
  • Open Graph
  • X (Twitter) Cards
  • Composer

Available as

  • Web

Repository facts

  • Repositorymelbahja/seo
  • LanguagePHP
  • Stars365
  • Forks56
  • LicenceMIT
  • Created2019-03-02
  • Last commit2026-05-26
  • Open issues0
  • google-indexing-api
  • indexing-api
  • indexnow
  • json-ld
  • metatags
  • php
  • php8
  • robots-txt
  • schema-org
  • search-engine-optimization

Services and details

  • Does SEO work itself

    Yes
  • Free plan or free tools

    Yes
  • API or MCP server

    Yes

No information yet on keyword research, content optimization, writes content with AI, technical audits, rank tracking, backlinks and link building, local SEO, AI search visibility, free trial, WordPress plugin, browser extension, built for agencies. The website did not say; check with the vendor.

Compare with other SEO tools:

About the company

Listing compiled from public sources and the product's own website. Last updated 2026-11-12. Report a correction or request removal. Back to GitHub repos.