Download the PHP package kfoobar/laravel-seo-tools without Composer

On this page you can find all versions of the php package kfoobar/laravel-seo-tools. 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-tools

Laravel SEO Tools

Breadcrumbs, robots.txt, and XML sitemaps for Laravel. Meta tags, Open Graph, and JSON-LD stay in laravel/head.

Installation

The package requires PHP 8.3+, Laravel 13.17+, and laravel/head.

Publish the config (optional):

Publish the breadcrumb view (optional):

Layout

/robots.txt and /sitemap.xml are registered automatically.

Breadcrumbs

Add crumbs in a controller (or anywhere before @head renders):

The last crumb is the current page: it is not linked, and it gets aria-current="page". The same trail is pushed to Head::schema(Schema::breadcrumbs()) so JSON-LD is rendered by @head without duplicating data.

If the trail is empty, neither the nav nor the schema is rendered.

robots.txt

Configured in config/seo.php, not per request:

This is the site-wide crawl file. Page-level meta robots still belongs to Laravel Head.

Sitemap

No crawler. URLs and models are read from config on each request, so the list stays the same under PHP-FPM and Octane. Each entry is a URL plus optional lastmod. Google ignores changefreq and priority.

toSitemapTag() may also return a URL string. Models are read with lazy(), so the full table is not loaded at once.

Set enabled to false before routes are cached if the application serves its own /sitemap.xml or /robots.txt. Rebuild the route cache after changing that flag.

Testing


All versions of laravel-seo-tools with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/contracts Version ^13.17
illuminate/routing Version ^13.17
illuminate/support Version ^13.17
illuminate/view Version ^13.17
laravel/head Version ^0.2
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 kfoobar/laravel-seo-tools contains the following files

Loading the files please wait ...