Skip to content

CodeIgniter library that creates new and unique slugs (friendly URIs).

Notifications You must be signed in to change notification settings

alemohamad/ci-slug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

CodeIgniter Library: Create new and unique slugs

ci-slug

About this library

This CodeIgniter's Library is used to create new and unique slugs.

The method will search in the database for an preexistent slug, and if it exists it will increment the final number to return a new and unique slug.

This project is a modified version of the Farhan Khan's CodeIgniter Slug Library.

Its usage is recommended for CodeIgniter 2 or greater.

Usage

$this->load->library('Slug');

// parameters: 'text', 'table'
echo $this->slug->create_unique_slug('New features in GitHub', 'news');

Ale Mohamad

About

CodeIgniter library that creates new and unique slugs (friendly URIs).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages