Download the PHP package jacky525/seo without Composer
On this page you can find all versions of the php package jacky525/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 sitempas to ๐ search engines
- [๐] No dependencies
- [๐ง] && more coming soon...
Installation:
Usage:
Check this simple examples. (of course the composer autoload.php file is required)
๐ท Generate schema.org
Results: (formatted)
Results:
Results:
๐ Meta Tags
Results:
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:
TODOs:
New features coming in v1.1
- Add robots.txt builder
- Add validation for image options
- Add support for video restriction
- Add more tests
- Add a simple integration for frameworks (๐ฎcakephp and ๐ฆlaravel)
- Add a better documentation
- Your suggestions [Open new issue ๐ค]
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 Sitempas (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 Mohamed Elbahja
All versions of seo with dependencies
ext-xml Version *
ext-curl Version *