Download the PHP package elegantly/laravel-seo without Composer
On this page you can find all versions of the php package elegantly/laravel-seo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download elegantly/laravel-seo
More information about elegantly/laravel-seo
Files in elegantly/laravel-seo
Package laravel-seo
Short Description An Elegant & flexible SEO tag builder for Laravel
License MIT
Homepage https://github.com/ElegantEngineeringTech/laravel-seo
Informations about the package laravel-seo
An Elegant & Flexible SEO Tag Builder for Laravel
Introduction
laravel-seo
is a flexible and powerful package for managing SEO tags in Laravel applications.
With this package, you can easily handle:
- Standard HTML tags like
<title>
and<meta name="robots">
- Localization with alternate tags (Google SEO Localization)
- Open Graph tags with structured properties, arrays, and object types
- Twitter (X) tags
- Structured data (JSON-LD)
Installation
You can install the package via Composer:
Next, publish the config file:
Config File Overview
The configuration file (config/seo.php
) allows you to customize the default SEO behavior for your application. Here's a snippet with all available settings:
Usage
Displaying SEO Tags
You can easily render all SEO tags in your Blade views by calling the seo()
helper function:
This will render all the default tags, for example:
Setting SEO Tags in Controllers
You will typically want to define your SEO tags dynamically in your controllers. You can do this using either the seo()
helper or the SeoManager
facade:
Then, in your Blade view, just render the tags like this:
Advanced Usage
For more complex SEO needs, you can instantiate and configure the SeoManager
class directly. This gives you full control over every tag, including Open Graph, Twitter, JSON-LD, and custom schema tags.
Then, in your Blade view:
Testing
To run the tests:
Changelog
Please see CHANGELOG for details on recent updates.
Contributing
See CONTRIBUTING for guidelines on contributing to this project.
Security
Please refer to our security policy for reporting vulnerabilities.
Credits
- Quentin Gabriele
- All Contributors
License
This package is licensed under the MIT License.
All versions of laravel-seo with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^11.0||^12.0