2017 © Pedro Peláez
 

library slugify

Lightweight slugify library

image

ashleydawson/slugify

Lightweight slugify library

  • Wednesday, May 6, 2015
  • by AshleyDawson
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5,379 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 20 % Grown

The README.md

Slugify

Build Status, (*1)

Installation

You can install Slugify via Composer. To do that, simply require the package in your composer.json file like so:, (*2)

{
    "require": {
        "ashleydawson/slugify": "~1.0"
    }
}

Then run composer update to install the package., (*3)

Basic Usage

Using slugify is easy - simply instantiate the slugifier service class and call the slugify method:, (*4)

require_once __DIR__ . '/vendor/autoload.php';

use AshleyDawson\Slugify\Slugifier;

$slugifier = new Slugifier();

$text = $slugifier->slugify('Hello World');

// The value of $text will be "hello-world"
echo $text;

If you'd like to change the delimiter used, simply pass it as the second argument to the slugify method:, (*5)

require_once __DIR__ . '/vendor/autoload.php';

use AshleyDawson\Slugify\Slugifier;

$slugifier = new Slugifier();

$text = $slugifier->slugify('Hello World', '_');

// The value of $text will be "hello_world"
echo $text;

The Versions

06/05 2015

dev-master

9999999-dev

Lightweight slugify library

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Ashley Dawson

slug slugify slugifier

06/05 2015

1.0.1

1.0.1.0

Lightweight slugify library

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Ashley Dawson

slug slugify slugifier

12/08 2014

dev-develop

dev-develop

Lightweight slugify library

  Sources   Download

The Requires

  • php >=5.3.3

 

The Development Requires

by Ashley Dawson

slug slugify slugifier

12/08 2014

1.0.0

1.0.0.0

Lightweight slugify library

  Sources   Download

The Requires

  • php >=5.3.3

 

The Development Requires

by Ashley Dawson

slug slugify slugifier