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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-seo

Laravel SEO

Tests Latest Version on Packagist Last updated

Fluent SEO metadata service for Laravel with Open Graph, Twitter Card, and JSON-LD structured data support.

Requirements

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:

Star the repo

🐛 Report issues

💡 Suggest features

❤️ Sponsor development

🌐 All Open Source Projects

💻 GitHub Profile

🔗 LinkedIn Profile

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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package philiprehberger/laravel-seo contains the following files

Loading the files please wait ...