Giter Site home page Giter Site logo

slug.php's People

Contributors

andrebian avatar kevinlebrun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

slug.php's Issues

Unneeded substr

Don't waste time with substr if it's not needed.

$string = mb_substr($string, 0, ($this->limit ? $this->limit : mb_strlen($string, 'UTF-8')), 'UTF-8');

Change to this:

if($this->limit) {
    $string = mb_substr($string, 0, $this->limit, 'UTF-8');
}

PSR for Slugifier/Urlizer Interface

Hi,

Just to let you know, we are making a proposal for the creation of a standard slugifier/urlizer interface at fig-standards:

https://github.com/php-fig/fig-standards/pull/100

There is also a mailing list post:

https://groups.google.com/forum/?fromgroups=#!topic/php-fig/J-6s9Wlyk-A

It would be cool if this PSR goes through and we can apply it to this library :)

Cheers

Dan

Can you tag v1.0.0

Hello.
Can you tag v1.0.0 your library ? (for composer and don't have to require a dev version).

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.