2017 © Pedro Peláez
 

library meta-page

library for working with page meta data

image

fdevs/meta-page

library for working with page meta data

  • Monday, August 15, 2016
  • by andrey1s
  • Repository
  • 3 Watchers
  • 0 Stars
  • 47 Installations
  • PHP
  • 1 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Meta Page Library

Documentation

Installation

Download the library by running the command:, (*1)

``` bash $ php composer.phar require fdevs/meta-page, (*2)


Composer will install the bundle to your project's `vendor/fdevs` directory. Usage ----- ```php use FDevs\MetaPage\Type\NameType; use FDevs\MetaPage\Type\PropertyType; use FDevs\MetaPage\Renderer\PhpRenderer; use FDevs\MetaPage\MetaFactory; use FDevs\MetaPage\Type\ImageType; use FDevs\MetaPage\Type\ListType; $metaFactory = new MetaFactory(); $description = $metaFactory ->createBuilder(ListType::class) ->add(NameType::class, ['name' => 'description', 'content' => 'description']) ->add(NameType::class, ['name' => 'keywords', 'content' => 'keywords']) ->add(PropertyType::class, ['name' => 'locale', 'content' => 'ru']) ->getMeta() ; $ogImage = $metaFactory->create(ImageType::class, [ 'content' => 'http://example.com/rock.jpg', 'image_type' => 'image/jpg', 'width' => 300, 'height' => 300, ]); $view = $metaFactory->createView($description); $image = $metaFactory->createView($ogImage); $renderer = new PhpRenderer(); echo $renderer->render($view); //<meta name="description" content="description"/><meta name="keywords" content="keywords"/><meta property="locale" content="ru"/> echo $renderer->render($image); //<meta property="og:image" content="http://example.com/rock.jpg"/><meta property="og:image:type" content="image/jpg"/><meta property="og:image:width" content="300"/><meta property="og:image:height" content="300"/>

License

This library is under the MIT license. See the complete license in the Library:, (*3)

LICENSE

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker., (*4)

The Versions

15/08 2016

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/4devs/MetaPage

library for working with page meta data

  Sources   Download

MIT

The Requires

 

The Development Requires

page meta

15/08 2016

1.2.0

1.2.0.0 https://github.com/4devs/MetaPage

library for working with page meta data

  Sources   Download

MIT

The Requires

 

The Development Requires

page meta

15/04 2016

dev-master

9999999-dev https://github.com/4devs/meta-page

library for working with page meta data

  Sources   Download

MIT

The Requires

 

page meta

28/03 2016

2.0.x-dev

2.0.9999999.9999999-dev https://github.com/4devs/meta-page

library for working with page meta data

  Sources   Download

MIT

The Requires

 

page meta

12/09 2015

1.1.1

1.1.1.0 https://github.com/4devs/MetaPage

library for working with page meta data

  Sources   Download

MIT

The Requires

 

page meta

12/09 2015

1.1.0

1.1.0.0 https://github.com/4devs/MetaPage

library for working with page meta data

  Sources   Download

MIT

The Requires

 

page meta

22/06 2015

1.0.2

1.0.2.0 https://github.com/4devs/MetaPage

library for working with page meta data

  Sources   Download

MIT

The Requires

 

page meta

09/06 2015

1.0.1

1.0.1.0 https://github.com/4devs/MetaPage

library for working with page meta data

  Sources   Download

MIT

The Requires

 

page meta