2017 © Pedro Peláez
 

library slugs

HoneyComb slugs

image

honey-comb/slugs

HoneyComb slugs

  • Tuesday, July 24, 2018
  • by jdmitrijev
  • Repository
  • 2 Watchers
  • 0 Stars
  • 269 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 87 % Grown

The README.md

honeycomb-slugs

https://github.com/honey-comb/slugs, (*1)

Description

Slugs manager for HoneyComb CMS, (*2)

Attention

This is part core package HoneyComb CMS package., (*3)

If you want to use laravel version 5.5.* use slug package version 0.1.*, (*4)

Requirement

  • php: ^7.1
  • laravel: ^5.6
  • composer, (*5)

    Installation

Begin by installing this package through Composer., (*6)

    {
        "require": {
            "honey-comb/slugs": "0.2.*"
        }
    }

or, (*7)

    composer require honey-comb/slugs

Usage

generateHCSlug(string $path, string $string, string $separator = '-'), (*8)

It is a helper function, which requires few parameters:, (*9)

$path - Under which domain the slug will be generated., (*10)

$string - Source from which text the slug will be generated., (*11)

$separator - You can specify a custom separator, (*12)

Examples

Let's say we have 2 services House and Flat. Each of them will have a record with at title One. And both of them will require a slug., (*13)

$houseSlug = generateHCSlug('house', 'One'); // output: one, (*14)

$flatSlug = generateHCSlug('flat', 'One'); // output: one, (*15)

Only when we will call it with the same name few times, then it will kick in., (*16)

$flatSlug = generateHCSlug('flat', 'One'); // output: one, (*17)

$flatSlug = generateHCSlug('flat', 'One'); // output: one-1, (*18)

$flatSlug = generateHCSlug('flat', 'One'); // output: one-2, (*19)

The Versions

24/07 2018

dev-master

9999999-dev https://github.com/honey-comb/slugs

HoneyComb slugs

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jevgenij Dmitrijev
by Mantas Paulauskas
by Darius Šlubelis

laravel cms slugs honey honeycomb

24/07 2018

0.2.2

0.2.2.0 https://github.com/honey-comb/slugs

HoneyComb slugs

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jevgenij Dmitrijev
by Mantas Paulauskas
by Darius Šlubelis

laravel cms slugs honey honeycomb

11/05 2018

0.2.1

0.2.1.0 https://github.com/honey-comb/slugs

HoneyComb slugs

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jevgenij Dmitrijev
by Mantas Paulauskas
by Darius Šlubelis

laravel cms slugs honey honeycomb

11/05 2018

0.2.0

0.2.0.0 https://github.com/honey-comb/slugs

HoneyComb slugs

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jevgenij Dmitrijev
by Mantas Paulauskas
by Darius Šlubelis

laravel cms slugs honey honeycomb

11/05 2018

dev-refactoring56

dev-refactoring56 https://github.com/honey-comb/slugs

HoneyComb slugs

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jevgenij Dmitrijev
by Mantas Paulauskas
by Darius Šlubelis

laravel cms slugs honey honeycomb