2017 © Pedro Peláez
 

library page-seo-lib

Library to simplify managing and retrieving seo strings configurations from a config array

image

awg/page-seo-lib

Library to simplify managing and retrieving seo strings configurations from a config array

  • Friday, September 19, 2014
  • by 7heaven
  • Repository
  • 3 Watchers
  • 0 Stars
  • 58 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Page Seo library

Library to simplify managing and retrieving seo strings configurations from a config array, (*1)

Build Status, (*2)

Installation

Use Composer. Just add this dependency to your composer.json:, (*3)

  "require": {
    "awg/page-seo-lib": "dev-master"
  }

Usage example

    $configuration = new \Awg\PageSeo\Configuration\InheritanceArrayProvider(array(
      'route1' => array(
        'title' => 'Route 1: Hello, %name%',
        'keywords' => 'Common Route Keywords'
      ),
      'route2' => array(
        'inherit' => '@route1',
        'title' => 'Route 2: Hello, %name%'
      )
    ), array(
      'description' => 'Default Route Description'
    ));
    $renderer = new \Awg\PageSeo\Render\BasicRenderer(new \Awg\PageSeo\Render\Engine\PlaceholderEngine());
    $manager = new \Awg\PageSeo\Manager($configuration, $renderer);

    var_dump($manager->renderTitle('route1', array('name' => 'John Doe')));
    var_dump($manager->renderKeywords('route2', array()));
    var_dump($manager->renderDescription('route2', array()));

The Versions

19/09 2014

dev-master

9999999-dev https://github.com/ansata-biz/page-seo-lib/

Library to simplify managing and retrieving seo strings configurations from a config array

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

configuration seo awg