Download the PHP package puzbie/meta without Composer

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

Meta Tag Manager with Laravel 5 Hooks

Installation

Step 1: Composer

Add the package to your composer.json:

Step 2: Configuration

Add the following to your config/app.php in the providers array:

You can also optionally add the following to the aliases array:

Usage

Basic Suggested Usage:

Use middleware to assign your default meta tags for all pages:

Notice that you can also set the TITLE tag. This is because you may want to duplicate it in certain social tags.

Also notice that the tags have been simplified. The package will expand them to produce the correct tags. For a full list of supported tags see the appendix. But here is an example:

This will expand to:

If your tag of choice isn't supported, then you can build it yourself by supplying a third parameter to setTag,

This will expand to:

Now, in your view template, add the following to the header section:

So far so good. Suppose you want to change the description depending on what page you are on, or add product info tags etc?

Just add them after the middleware and before the dump. You can either add individual tags, or use some of the helper methods

included to generate social tags.

The above example removes the default meta settings, and generates social tags defined in the STANDARD section of this site: https://moz.com/blog/meta-data-templates-123

I'm not affiliated with that site in any way, I just found it a useful source of information.

Notes

  1. I will be adding more documentation shortly. The tests should give you some pointers though.
  2. I have removed support for various twitter cards (product, gallery, image etc) as they are being depreciated as of July. You can still add them manually, using settag, should you so desire.

License

MIT

Appendix

Currently Supported Tags:

-


All versions of meta with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
illuminate/support Version >=5.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 puzbie/meta contains the following files

Loading the files please wait ....