bowphp / meta-manager
Meta Manager is an SEO tool that is used to improve SEO of a Bowphp web application by adding recommended meta tags to your web pages.
Installs: 2 898
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Requires (Dev)
- bowphp/framework: 5.x-dev
- phpunit/phpunit: ^10.1
- spatie/phpunit-snapshot-assertions: dev-main
This package is auto-updated.
Last update: 2024-12-06 16:04:25 UTC
README
Meta Manager is an SEO tool that is used to improve the SEO of a website or specific page by adding recommended meta tags to your application.
SEO Features
- Standard Meta Tags
- Facebook OpenGraph Meta Tags
- Twitter Card Meta Tags
- Dublin Core Meta Tags
- Link Tags
Requirements
Steps
Install
Run the following to include this package via Composer
composer require bowphp/meta-manager
Once the download is complete, the next thing you have to do is include the service provider within app/Kernel.php
.
public function configurations(): array { return [ ... Bow\MetaManager\MetaManagerConfiguration::class, ]; }
Configuration
Setup default application meta in meta.php
config. (Optional but recommended)
Available options
Usage
Once the configuration is complete you can then add the below at the meta area of the page you want to include meta tags;
%meta()
The above will use the predefined configurations to prefill the generated meta tags. However, if you chose to define certain options on the fly then you can use the code below.
%meta([ 'title' => 'My Example Title', 'description' => 'This is my example description', 'image' => 'Url to the image', ]);
Example
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> %meta([ 'title' => 'My Example Title', 'description' => 'This is my example description', 'image'=> '', ]) </head> <body> </body> </html>
Maintainers
Contact
Please, if there is a bug on the project contact me by email or leave me a message on Slack. or join us on Slask
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request