2017 © Pedro Peláez
 

library seo

In your view scripts or controller actions, often it is necessary to convert strings to perform well in urls. You can use this helper classes to perform these behaviors for you.

image

aubiplus/seo

In your view scripts or controller actions, often it is necessary to convert strings to perform well in urls. You can use this helper classes to perform these behaviors for you.

  • Friday, October 14, 2016
  • by Stillmatic1985
  • Repository
  • 4 Watchers
  • 1 Stars
  • 2,337 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Seo

In your view scripts or controller actions, often it is necessary to convert strings to perform well in urls. You can use this helper classes to perform these behaviors for you., (*1)

For example: The string this is just an example will be converted to this-is-just-an-example., (*2)

Installation

./composer.phar require aubiplus\seo

Usage

Sample module config:

<?php
return [
    'seo'             => [
        'seperator' => '-',
        'chars'     => [
            '/ä|Ä/' => 'ae',
            '/ö|Ö/' => 'oe',
            '/ü|Ü/' => 'ue'
        ]
    ]
];

Seperator

The defined seperator is used to replace all whitespaces with the given character., (*3)

Chars

In the chars section you can define own replacements. As you can see in the sample module config the key is a regular expression which will be replaced by the value., (*4)

Use service

$urlService = $serviceManager->get(\Aubiplus\Seo\Service\Url::class);
echo $urlService->create("this is just an example");

Use view helper

echo $this->seoUrl("this is just an example");

Use controller plugin

echo $this->seoUrl("this is just an example");

Questions / support

If you're having trouble with this module feel free and create an issue., (*5)

The Versions

14/10 2016

v0.2.0.x-dev

0.2.0.9999999-dev https://github.com/aubiplus/seo

In your view scripts or controller actions, often it is necessary to convert strings to perform well in urls. You can use this helper classes to perform these behaviors for you.

  Sources   Download

MIT

The Requires

 

The Development Requires

service url zf2 view helper controller plugin zend framework 2 seo

14/10 2016

0.2.0

0.2.0.0 https://github.com/aubiplus/seo

In your view scripts or controller actions, often it is necessary to convert strings to perform well in urls. You can use this helper classes to perform these behaviors for you.

  Sources   Download

MIT

The Requires

 

The Development Requires

service url zf2 view helper controller plugin zend framework 2 seo

04/10 2016

dev-master

9999999-dev https://github.com/aubiplus/seo

In your view scripts or controller actions, often it is necessary to convert strings to perform well in urls. You can use this helper classes to perform these behaviors for you.

  Sources   Download

MIT

The Requires

 

The Development Requires

service url zf2 view helper controller plugin zend framework 2 seo

04/10 2016

1.1.1

1.1.1.0 https://github.com/aubiplus/seo

In your view scripts or controller actions, often it is necessary to convert strings to perform well in urls. You can use this helper classes to perform these behaviors for you.

  Sources   Download

MIT

The Requires

 

The Development Requires

service url zf2 view helper controller plugin zend framework 2 seo

06/09 2016

1.0.1

1.0.1.0 https://github.com/aubiplus/seo

In your view scripts or controller actions, often it is necessary to convert strings to perform well in urls. You can use this helper classes to perform these behaviors for you.

  Sources   Download

MIT

The Requires

 

The Development Requires

service url zf2 view helper controller plugin zend framework 2 seo

01/09 2016

1.0.0

1.0.0.0 https://github.com/aubiplus/seo

In your view scripts or controller actions, often it is necessary to convert strings to perform well in urls. You can use this helper classes to perform these behaviors for you.

  Sources   Download

MIT

The Requires

 

The Development Requires

service url zf2 view helper controller plugin zend framework 2 seo

01/05 2016

0.1.4

0.1.4.0 https://github.com/aubiplus/seo

In your view scripts or controller actions, often it is necessary to convert strings to perform well in urls. You can use this helper classes to perform these behaviors for you.

  Sources   Download

MIT

The Requires

 

The Development Requires

service url zf2 view helper controller plugin zend framework 2 seo

30/04 2016

0.1.3

0.1.3.0 https://github.com/aubiplus/seo

In your view scripts or controller actions, often it is necessary to convert strings to perform well in urls. You can use this helper classes to perform these behaviors for you.

  Sources   Download

MIT

The Requires

 

The Development Requires

service url zf2 view helper controller plugin zend framework 2 seo