Download the PHP package melbahja/seo without Composer
On this page you can find all versions of the php package melbahja/seo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package seo
Short Description SEO library for PHP is a simple PHP library to help developers 🍻 do better on-page SEO optimizations.
License MIT
Informations about the package seo
PHP SEO
The SEO library for PHP is a simple and powerful PHP library to help developers 🍻 do better on-page SEO optimizations.
PHP SEO features:
- [👷] Generate Rich Results schema.org ld+json
- [🛀] Generate Meta Tags with X (Twitter) and Open Graph Support
- [🌐] Generate XML Sitemaps (supports: 📰 News Sitemaps, 🖼 Images Sitemaps, 📹 Video Sitemaps, Index Sitemaps)
- [📤] IndexNow and Google Indexing API
- [✅] Schema Rich Results Validator
- [🧩] Zero Dependencies
Installation:
Documentation
You can read the docs Here.
Usage:
Check this simple examples.
👷 Generate schema.org
Results: (formatted)
Results:
🛀 Meta Tags
Results:
🗺 Sitemaps
Generate XML sitemaps with support for images, videos, news, and localized URLs.
Basic Usage
Options
| Option | Description | Required | Default |
|---|---|---|---|
saveDir |
Generated sitemaps storage path | Yes | - |
sitemapBaseUrl |
Custom URL for generated sitemaps | No | Base URL |
indexName |
Custom sitemap index name | No | sitemap.xml |
mode |
Output mode (FILE, MEMORY, STREAM, TEMP) | No | TEMP |
URL Methods
Advanced Features
Image Sitemaps
Video Sitemaps
News Sitemaps
Multilingual Sitemaps
Output Modes
TEMP Mode (Default)
File Mode
Memory Mode
Stream Mode
Complete Example
Indexing API
Submit URLs to search engines for instant indexing using Google Indexing API and IndexNow protocol.
Google Indexing API
IndexNow Protocol
AI LLMs.txt Support
If you find LLMs.txt valuable for your use case, contributions are welcome! Feel free to submit a PR.
🚀 Who's Using melbahja/seo?
- Tiki Wiki CMS Groupware - All-in-one collaboration platform
- Castopod - Open-source podcast hosting platform
- [ADD YOURS]
and many more non-open source projects.
Sponsors
Special thanks to friends who support this work financially:
References
- Sitemaps protocol (https://www.sitemaps.org/protocol.html)
- Build Sitemaps (https://support.google.com/webmasters/answer/183668?hl=en)
- News Sitemaps (https://support.google.com/webmasters/answer/74288)
- Image Sitemaps (https://support.google.com/webmasters/answer/178636)
- Video Sitemaps (https://support.google.com/webmasters/answer/80471)
- Mobile (https://developers.google.com/search/mobile-sites/mobile-seo/other-devices)
License
MIT Copyright (c) Mohamed Elbahja
All versions of seo with dependencies
ext-xml Version *
ext-curl Version *
ext-json Version *