Download the PHP package philiprehberger/laravel-seo without Composer
On this page you can find all versions of the php package philiprehberger/laravel-seo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download philiprehberger/laravel-seo
More information about philiprehberger/laravel-seo
Files in philiprehberger/laravel-seo
Download philiprehberger/laravel-seo
More information about philiprehberger/laravel-seo
Files in philiprehberger/laravel-seo
Vendor philiprehberger
Package laravel-seo
Short Description Fluent SEO metadata service for Laravel with Open Graph, Twitter Card, and JSON-LD structured data support
License MIT
Homepage https://github.com/philiprehberger/laravel-seo
Package laravel-seo
Short Description Fluent SEO metadata service for Laravel with Open Graph, Twitter Card, and JSON-LD structured data support
License MIT
Homepage https://github.com/philiprehberger/laravel-seo
Please rate this library. Is it a good library?
Informations about the package laravel-seo
Laravel SEO
Fluent SEO metadata service for Laravel with Open Graph, Twitter Card, and JSON-LD structured data support.
Requirements
- PHP 8.2+
- Laravel 11 or 12
Installation
The service provider is registered automatically via Laravel package auto-discovery.
Publish the config file
This creates config/laravel-seo.php in your application.
Optionally publish the Blade views
Usage
Blade Component
Add the <x-seo::meta /> component inside your layout's <head> tag:
The component reads all values from the SeoService singleton, but also accepts inline overrides:
Fluent API via Facade
Type-Safe Open Graph Types
Service Injection
Page-Specific SEO from Config
JSON-LD Structured Data
Resetting Between Requests
API
| Method | Description |
|---|---|
Seo::setTitle(string $title) |
Set the page title |
Seo::setDescription(string $description) |
Set the meta description |
Seo::setCanonical(string $url) |
Set the canonical URL |
Seo::setOgImage(string $url) |
Set the Open Graph image |
Seo::setOgType(OgType\|string $type) |
Set the Open Graph type (enum or string) |
Seo::setOgImageAlt(string $alt) |
Set the Open Graph image alt text |
Seo::setNoindex(bool $noindex) |
Set the noindex flag |
Seo::forPage(string $key) |
Load SEO data from config for a page key |
Seo::addJsonLd(array $schema) |
Add a JSON-LD structured data block |
Seo::getOrganizationSchema() |
Generate an Organization schema array |
Seo::getWebsiteSchema() |
Generate a WebSite schema array |
Seo::getServiceSchema(string $name, string $description, string $type) |
Generate a Service schema array |
Seo::getBreadcrumbSchema(array $items) |
Generate a BreadcrumbList schema array |
Seo::reset() |
Reset the service state |
Development
Support
If you find this project useful:
License
MIT
All versions of laravel-seo with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
illuminate/config Version ^11.0|^12.0
illuminate/support Version ^11.0|^12.0
illuminate/view Version ^11.0|^12.0
illuminate/config Version ^11.0|^12.0
illuminate/support Version ^11.0|^12.0
illuminate/view Version ^11.0|^12.0
The package philiprehberger/laravel-seo contains the following files
Loading the files please wait ...