2017 © Pedro Peláez
 

library meta

A package that makes it easy to add meta tags to your views. Includes easy Laravel integration.

image

quintype/meta

A package that makes it easy to add meta tags to your views. Includes easy Laravel integration.

  • Monday, November 6, 2017
  • by quintype
  • Repository
  • 56 Watchers
  • 0 Stars
  • 13,530 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 18 Versions
  • 4 % Grown

The README.md

Meta

A package that makes it easy to add meta tags to your views., (*1)

This package will work in any PHP application, and Facades and Service Providers are provided to make it easy to integrate with Laravel 4., (*2)

Installation

General

Run the following Composer command in your terminal, or simply add 'Quintype/meta': '1.1.*' to your composer.json file:, (*3)

composer require Quintype/meta:'1.1.*'

Then update Composer from the terminal:, (*4)

composer update

Laravel Specific

This package also includes Laravel facades and service providers to make integration with Laravel easy., (*5)

Once complete, you now have to add the the service provider to the providers array in app/config/app.php:, (*6)

'Quintype\Meta\MetaServiceProvider'

Finally, add the following entry entry to the aliases array in app/config/app.php:, (*7)

'Meta' => 'Quintype\Meta\Facades\Meta'

That's it!, (*8)

Usage

General

To set meta tag values, you will use the set(array()) method on the Meta instance. Just pass this Meta object around to persist the set values., (*9)

$meta = new \Quintype\Meta\Meta;

// Example #1 - Basic setting of values
$meta->set(array('title' => 'Page Title', 'description' => 'Page Description', 'keywords' => array('great', 'site')));

// Example #2 - Setting nested values. This will render tags with names like og:title and og:description
$meta->set(array('title' => 'Page Title', 'og' => array('title' => 'OG Title', 'description' => 'OG Description')));

To display your meta tags using the set values, you will use the display(array()) function on your Meta object.:, (*10)

$meta->display();

// Displaying Example #1 from above
<meta name="title" content="Page Title"/>
<meta name="description" content="Page Description"/>
<meta name="keywords" content="great, site"/>

// Displaying Example #2 from above
<meta name="title" content="Page Title"/>
<meta name="og:title" content="OG Title"/>
<meta name="og:description" content="OG Description"/>

Laravel Specific

To set meta tag values, you will use the Meta::set(array()) function. Any set values will persist through the entire request of the application:, (*11)

// Example #1 - Basic setting of values
Meta::set(array('title' => 'Page Title', 'description' => 'Page Description', 'keywords' => array('great', 'site')));

// Example #2 - Setting nested values. This will render tags with names like og:title and og:description
Meta::set(array('title' => 'Page Title', 'og' => array('title' => 'OG Title', 'description' => 'OG Description')));

To display your meta tags using the set values, you will use the Meta::display(array()) function. This will normally be done in your layout or in other views:, (*12)

Meta::display();

// Displaying Example #1 from above
<meta name="title" content="Page Title"/>
<meta name="description" content="Page Description"/>
<meta name="keywords" content="great, site"/>

// Displaying Example #2 from above
<meta name="title" content="Page Title"/>
<meta name="og:title" content="OG Title"/>
<meta name="og:description" content="OG Description"/>

The display function also accepts an array of default values. These will be used when displaying your meta tags if a value is not set already using set()., (*13)

The Versions

06/11 2017

dev-master

9999999-dev https://github.com/quintype/meta

A package that makes it easy to add meta tags to your views. Includes easy Laravel integration.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Anagh Padmanabhan

laravel view meta

06/11 2017

2.1.0

2.1.0.0 https://github.com/quintype/meta

A package that makes it easy to add meta tags to your views. Includes easy Laravel integration.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Anagh Padmanabhan

laravel view meta

17/08 2017

2.0.6

2.0.6.0 https://github.com/quintype/meta

A package that makes it easy to add meta tags to your views. Includes easy Laravel integration.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Anagh Padmanabhan

laravel view meta

17/08 2017

2.0.5

2.0.5.0 https://github.com/quintype/meta

A package that makes it easy to add meta tags to your views. Includes easy Laravel integration.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Anagh Padmanabhan

laravel view meta

30/01 2017

2.0.4

2.0.4.0 https://github.com/quintype/meta

A package that makes it easy to add meta tags to your views. Includes easy Laravel integration.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Anagh Padmanabhan

laravel view meta

30/01 2017

dev-structured-data

dev-structured-data https://github.com/quintype/meta

A package that makes it easy to add meta tags to your views. Includes easy Laravel integration.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Anagh Padmanabhan

laravel view meta

25/01 2017

2.0.3

2.0.3.0 https://github.com/quintype/meta

A package that makes it easy to add meta tags to your views. Includes easy Laravel integration.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Anagh Padmanabhan

laravel view meta

20/01 2017

2.0.2

2.0.2.0 https://github.com/quintype/meta

A package that makes it easy to add meta tags to your views. Includes easy Laravel integration.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Anagh Padmanabhan

laravel view meta

27/12 2016

2.0.1

2.0.1.0 https://github.com/quintype/meta

A package that makes it easy to add meta tags to your views. Includes easy Laravel integration.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Anagh Padmanabhan

laravel view meta

14/10 2016

2.0.0

2.0.0.0 https://github.com/quintype/meta

A package that makes it easy to add meta tags to your views. Includes easy Laravel integration.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Anagh Padmanabhan

laravel view meta

14/10 2016

1.1.4

1.1.4.0 https://github.com/quintype/meta

A package that makes it easy to add meta tags to your views. Includes easy Laravel integration.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Anagh Padmanabhan

laravel view meta

01/10 2015

1.1.3

1.1.3.0 https://github.com/RyanNielson/meta

A package that makes it easy to add meta tags to your views. Includes easy Laravel integration.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

laravel view meta

02/03 2015

1.1.2

1.1.2.0 https://github.com/RyanNielson/meta

A package that makes it easy to add meta tags to your views. Includes easy Laravel integration.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

laravel view meta

12/08 2014

1.1.1

1.1.1.0 https://github.com/RyanNielson/meta

A package that makes it easy to add meta tags to your views. Includes easy Laravel integration.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

laravel view meta

30/07 2014

1.1.0

1.1.0.0 https://github.com/RyanNielson/meta

A package that makes it easy to add meta tags to your views. Includes easy Laravel integration.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

laravel view meta

19/03 2014

1.0.2

1.0.2.0 https://github.com/RyanNielson/meta

A package that makes it easy to add meta tags to your views. Includes easy Laravel integration.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

laravel view meta

13/03 2014

1.0.1

1.0.1.0 https://github.com/RyanNielson/meta

A Laravel 4 package that makes it easy to add meta tags to your views.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel view meta

13/03 2014

1.0.0

1.0.0.0 https://github.com/RyanNielson/meta

A Laravel 4 package that makes it easy to add meta tags to your views.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel view meta