negusdev / seoinjector-php
Universal PHP library for SEO Injector - Works with Laravel, WordPress, Symfony, or any PHP project
v0.4.1
2026-02-23 06:23 UTC
Requires
- php: ^7.4|^8.0|^8.1|^8.2|^8.3
Requires (Dev)
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^9.5|^10.0
- squizlabs/php_codesniffer: ^3.7
README
Universal PHP library for managing SEO metadata from a centralized dashboard. Works with Laravel, WordPress, Symfony, CodeIgniter, or any PHP project.
โจ Features
- ๐ Works with any PHP framework or vanilla PHP
- ๐ฆ Zero dependencies
- โก Built-in file caching
- ๐จ WordPress integration included
- ๐ง Laravel service provider included
- ๐ Symfony bundle ready
- ๐งช Fully tested
- ๐ Comprehensive documentation
๐ฆ Installation
composer require negusdev/seoinjector-php
๐ Quick Start
Vanilla PHP
<?php require 'vendor/autoload.php'; use SEOInjector\SEOInjector; $seo = new SEOInjector('your_api_key'); ?> <!DOCTYPE html> <html> <head> <?php echo $seo->render(); ?> </head> <body> <!-- Your content --> </body> </html>
Laravel
// In your blade template {!! app('seoinjector')->render() !!}
WordPress
// In functions.php or plugin file add_action('wp_head', function() { $seo = new \SEOInjector\SEOInjector(get_option('seoinjector_api_key')); echo $seo->render(); }, 1);
๐ Documentation
๐งช Testing
composer test
๐ Changelog
See CHANGELOG.md for details.
๐ค Contributing
See CONTRIBUTING.md for details.
๐ License
MIT License - see LICENSE file.