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 Simple PHP library to help developers 🍻 do better on-page SEO optimization
License MIT
Informations about the package seo
PHP SEO
Simple PHP library to help developers 🍻 do better on-page SEO optimization
PHP SEO features:
- [👷] Generate schema.org ld+json
- [🛀] Generate meta tags with twitter and open graph support
- [🌐] Generate sitemaps xml and indexes (supports: 🖺 news, 🖼 images, 📽 videos)
- [📤] Submit new sitemaps to search engines
- [📤] Indexing API
- [🙈] No dependencies
Installation:
Usage:
Check this simple examples. (of course the composer autoload.php file is required)
👷 Generate schema.org
Results: (formatted)
Results:
🛀 Meta Tags
Results:
🗺 Sitemaps
Option name | Description | Required ? | Default |
---|---|---|---|
save_path | Generated sitemaps storage path | YES | |
sitemaps_url | Sitemap index custom url for generated sitemaps | NO | $url |
index_name | Custom sitemap index name | NO | sitemap.xml |
Simple Example
Results: (📂 in: /path/to_save/files/)
📁: sitemap.xml (formatted)
📁: blog.xml (formatted)
Multipe Sitemaps && Images
Results
📁: index.xml
📁: blog.xml
📁: blog_2.xml
Sitemap with videos
Results
📁: index.xml
Note: lastmod in sitemap index files are generated automatically
📁: posts.xml
News Sitemaps
Results
📁: news_index.xml
📁: my_news.xml
Google quote: ⚠ "If you submit your News sitemap before your site has been reviewed and approved by our team, you may receive errors." ⚠
🤖 Send Sitemaps To Search Engines
According to the sitemaps protocol, search engines should have a url that allow you to inform them about your new sitemap files. like:
Indexing API
This is the first PHP library to support the new search engines indexing API (aka indexnow.org).
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) 2019-present Mohamed Elbahja
All versions of seo with dependencies
ext-xml Version *
ext-curl Version *
ext-json Version *