Download the PHP package davmixcool/laravel-meta-manager without Composer

On this page you can find all versions of the php package davmixcool/laravel-meta-manager. 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-meta-manager

Laravel Meta Manager

Laravel Meta Manager is an SEO tool that is used to improve the SEO of a website or specific page by adding recommended meta tags to your application.

Tests Latest version PHP version Downloads License CodeFactor Issues

SEO Features

Requirements

Laravel 13 requires PHP 8.3 and above.

Laravel 10 and 11 have reached end of life. This package still supports them and still tests against them, so an existing application can upgrade. Note that Composer now refuses to install those Laravel versions into a new project, because every release in both lines carries an unpatched security advisory.

On Laravel 9 or below? You get v1, and that is the correct outcome. composer require davmixcool/laravel-meta-manager resolves to 1.2 on its own, because v2 requires Laravel 10+ — this is tested on Laravel 5.5 through 9. If your application already requires ^1.0, composer update keeps you there too. v1 is supported for security fixes and its documentation is on the 1.x branch.

Upgrading from v1? Nothing in your application needs to change. See UPGRADE.md.

Steps:

Install

Composer

Run the following to include this package via Composer

Laravel uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

Once the download is complete, the next thing you have to do is include the service provider within config/app.php.

Then run;php artisan vendor:publish --provider="Davmixcool\MetaManager\MetaServiceProvider" to get the config of Laravel Meta Manager.

Configuration

Setup default application meta inmeta.phpconfig. (Optional but recommended)

Available options:

Option Description
robots Robots option tells search engines what to follow and what not to follow.
revisit_after Here you may specify how search engines will re-visit and re-crawl your site.
referrer Here you may specify how you want other sites to get referrer information from your site.
type Here you may specify the structure type of your website or a specific page
title Here you may provide the title of your website or a specific page to help search engines understand it better.
description Here you may provide the description of your website or a specific page to help search engines understand it better.
image Here you may provide the URL to the image you want search engines and crawlers to make use of when displaying your website or a specific page.
author Here you may provide the author's name you want search engines to make use of when displaying your website or a specific page.
geo_region Here you specify the region of your location. This is useful if you have a physical location that is important for your business.
geo_position Here you specify the geo-coordinates of your physical location in longitude and latitude.
twitter_site Here you may provide your Twitter @username of your account
twitter_card Here you may specify the way you want crawlers to understand your Twitter share type.
fb_app_id Here you may provide your Facebook app id
keywords Here you may provide keywords relevant to your website and the specific page.
site_name Here you may provide the name of your site. Defaults to your application name.
locale Here you may provide the locale of your content, such as en_US. Defaults to your application locale.
title_template Here you may provide a template applied to titles you set, such as %s — Acme.
canonical Here you may provide the canonical URL of your page, or current to use the current URL.
twitter_creator Here you may provide the Twitter @username of the content author.
image_width Here you may provide the width of your image so crawlers can lay out the preview before it loads.
image_height Here you may provide the height of your image so crawlers can lay out the preview before it loads.
image_alt Here you may provide the alternative text describing your image.
blade_tags Here you may specify which tags @include('meta::manager') prints, either extended or standard.
geo_placename Here you specify the place name of your location, such as a city. Leave empty to use your application name, or set it to false to leave the tag out.
dcterms_subject Here you may specify the Dublin Core subject of your content, which is not always the same as your keywords. Leave empty to reuse your keywords, or set it to false to leave the tag out.

Usage

Once the configuration is complete you can then add the below at the meta area of the page you want to include meta tags;

The above will use the predefined configurations to prefill the generated meta tags. However, if you chose to define certain options on the fly then you can use the code below.

The available options are title, description, keywords, author, image, type, robots, referrer, twitter_card and twitter_site.

Example

Fluent API

If you would rather set your meta from a controller than pass it through the view, you can. Both work together, and options passed to @include still take precedence.

Your layout keeps using @include('meta::manager'), or you can render the tags directly;

Available methods:

Method Description
title Here you may provide the title of the page. Also fills the OpenGraph and Twitter titles.
description Here you may provide the description of the page. Also fills the OpenGraph and Twitter descriptions.
image Here you may provide the image, along with its width, height and alt text.
canonical Here you may provide the canonical URL of the page.
robots Here you may specify what search engines should follow. index(), noIndex(), follow() and noFollow() are also available.
type Here you may specify the structure type of the page.
siteName Here you may provide the name of your site.
locale Here you may provide the locale of your content.
keywords Here you may provide keywords relevant to the page, as a string or an array.
author Here you may provide the author's name.
add Here you may add any other meta tag by name.
property Here you may add any other meta tag by property.
link Here you may add any link tag. favicon() is also available.
openGraph Here you may override the OpenGraph tags individually.
twitter Here you may override the Twitter card tags individually.
toArray Here you may inspect the generated meta, which is useful in tests.
validate Here you may check your meta for common problems.

You can also check your meta from the command line;

MetaManager.dev

meta:check validates the meta you are about to render. MetaManager.dev checks the other half: it fetches a deployed URL the way a crawler does and shows what actually arrived — whether the og:image resolves at the dimensions you claimed, whether the canonical survived your CDN, and how each platform previews the page. Free for single pages, no account needed.

It also runs an MCP server, so an AI agent can check a page, fix it, and check again to confirm the score moved.

Stargazers

Stars

Thank you to everyone who has starred this package.

Forkers

Forks

And to everyone who has forked it.

Maintainers

This package is maintained by David Oti and you!

License

This package is licensed under the MIT license.


All versions of laravel-meta-manager with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/view Version ^10.0|^11.0|^12.0|^13.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 davmixcool/laravel-meta-manager contains the following files

Loading the files please wait ...