Download the PHP package esign/laravel-seo without Composer

On this page you can find all versions of the php package esign/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

Manage SEO tags within your Laravel application

Latest Version on Packagist Total Downloads Github Workflow Status

This package allows you to render SEO related HTML tags that can be set from anywhere in your application. Currently Meta, Open Graph, Twitter Card and JsonLD are supported. It also ships with some handy ways to configure SEO for your Eloquent models.

Installation

You can install the package via composer:

The package will automatically register a service provider.

Next up, you can publish the configuration file:

The config file will be published as config/seo.php with the following content:

Usage

Preparing your HTML

You may start off by including the seo views in the head of your HTML:

In case you want to customize these views, you may publish them using the following command:

Setting attributes

To quickly set up some SEO attributes, you may use the Seo class. This is usually done from the controller, but that shouldn't limit you from using it in other places:

The SEO class will forward these to all the underlying tags. In case you want some more fine grained control over what attributes are being set you may use the individual tags:

You can also use a fluent API that allows you to chain methods:

Defining mutators

This package allows you to define mutators like Laravel's model attributes:

A setTitleAttribute has been included on all traits that will suffix your title with your app name:

To bypass a mutator while setting an attribute, you may use the setRaw method:

Setting SEO for models

To set SEO for models, you may implement the Esign\Seo\Contracts\SeoContract interface. A handy trait Esign\Seo\Concerns\HasSeoDefaults has been included that can quickly help you set up some SEO defaults for your model. This however is not necessary, you could also implement the methods yourself:

You may set this SeoContract using the set method:

Seo API

Meta API

Open Graph API

Twitter Card API

JsonLd API

This package also ships with a nice helper method that you may use as an alternative to the facade:

Testing

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-seo with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0
spatie/schema-org Version ^3.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 esign/laravel-seo contains the following files

Loading the files please wait ....