Download the PHP package kfoobar/laravel-meta without Composer

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

Laravel package to manage meta and title tags

This package makes it easier to work with HTML meta and title tags in Laravel 5 and Laravel 6.

The package can be used in any controller with the facade or in any blade file with the facade or the blade directives.

The package supports most meta tags. It also supports the <title> tag and the <link> tag for canonical since they are commonly used.

Installation

Begin by installing the package with Composer from your command line:

Laravel 5.5 or later

If you use auto-discovery, you don't need to do anything more to enable the package.

Laravel 5.4 or earlier

You need to register the service provider with your Laravel application in config/app.php:

Also add the facade to the same config file:

How to use

How to use the facade

If you want to set your tags in a controller, you'll need to add the namespace for the Meta facade.

Set values

You can set the tag values in your controller with the set method.

Get values

And if you need to, you can also get the values with the get method.

Get the full html tag

I you want the full html tag as a string, use the tag method.

Check if value is set

If you need the check if any value is set, use the has method.

How to use the blade directives

You can use the facade directly in you blade files, but there are a few blade directives that will make your blade files look a bit cleaner.

Set values

By using the @setMeta directive, you can set the values of your title and meta tags in any blade file.

Get values

Use the @getMeta directive when you want to get the value of your title and meta tags.

Get the full html tag

You can use the @getTag directive when you want to print the full html tag.

Check if value is set

When you need the check if any value is set, use the @hasMeta directive.

You can also use @endif instead of @endhasMeta if you prefer.

Example

This is our blade file:

This will be the output:

Contributing

Contributions are welcome!

License

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


All versions of laravel-meta with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
illuminate/support Version ^5.5|^6|^7|^8
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-meta contains the following files

Loading the files please wait ....