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
MIT
The Requires
- php >=5.3.0
configuration seo awg
Library to simplify managing and retrieving seo strings configurations from a config array
Library to simplify managing and retrieving seo strings configurations from a config array, (*1)
Use Composer. Just add this dependency to your composer.json
:, (*3)
"require": { "awg/page-seo-lib": "dev-master" }
$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()));
Library to simplify managing and retrieving seo strings configurations from a config array
MIT
configuration seo awg