https://github.com/yohn/seo-manager
https://github.com/yohn/seo-manager
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yohn/seo-manager
- Owner: Yohn
- License: mit
- Created: 2025-06-18T16:50:12.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-01T23:10:31.000Z (12 months ago)
- Last Synced: 2025-07-02T00:21:39.022Z (12 months ago)
- Language: PHP
- Size: 61.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Docs/Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# SEO Manager for PHP 8.2+
A comprehensive SEO management system that handles meta tags, Open Graph, Twitter Cards, and Schema.org structured data.
## Installation
```bash
composer require yohns/seo-manager
```
## Quick Start
```php
use Yohns\Core\Config;
use Yohns\SEO\SEOManager;
// Initialize with configuration
$config = new Config(__DIR__ . '/config');
$seo = new SEOManager($config);
// Set common properties
$seo->setCommon([
'title' => 'My Page Title',
'description' => 'Page description here',
'image' => 'https://example.com/image.jpg',
'url' => 'https://example.com/page'
]);
// Render all tags
echo $seo->render();
```
## Features
- **Meta Tags Management** - Title, description, keywords with validation
- **Open Graph Protocol** - Full support for all OG types
- **Twitter Cards** - All card types with character limits
- **Schema.org Markup** - Comprehensive structured data support
- **Configuration Support** - Default values via Config class
- **Validation** - Built-in validation for all tag types
- **Fluent Interface** - Chainable methods
## Documentation
- [SEOManager Class](SEOManager.md) - Main orchestrator class
- [Favicons Class](Favicons.md) - Favicon tags management
- [MetaTags Class](MetaTags.md) - HTML meta tags management
- [OpenGraph Class](OpenGraph.md) - Open Graph protocol
- [TwitterCards Class](TwitterCards.md) - Twitter Card tags
- [SchemaMarkup Class](SchemaMarkup.md) - Schema.org structured data
- [Configuration](Configuration.md) - Setting up defaults
- [Examples](Examples.md) - Common usage patterns
## Requirements
- PHP 8.2 or higher
- Yohns\Core\Config (optional, for configuration support)
## License
MIT