2017 © Pedro Peláez
 

library lllist-php

Humanized list and shit, cuz' we are human afterall

image

lllist/lllist-php

Humanized list and shit, cuz' we are human afterall

  • Sunday, April 1, 2018
  • by schleumer
  • Repository
  • 1 Watchers
  • 1 Stars
  • 951 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 14 % Grown

The README.md

Lllist Build Status Latest Stable Version Total Downloads Latest Unstable Version License

Hate build conditional lists, phrases, texts? Me too. This library is made to avoid code boilerplate when building lists, and also avoid things like: Josecleiton likes: apple, bananas, grapes or Josecleiton likes: apple, grapes and also do null, you could simply:, (*1)

lllist(', ', ' and ')
    ->items(['apple', 'bananas', 'grapes'])

Which will output apple, bananas and grapes, (*2)

or, (*3)

lllist(', ', ' and ')
    ->items(['apple', 'bananas', 'grapes'])
    ->sep(' and also ')
    ->append(null)

Which will output apple, bananas and grapes too, because lllist ignores empty values and also trim separators., (*4)

If you give lllist an empty list it will return null, because it's the right thing to do™., (*5)

Example:, (*6)

lllist(', ', ' and ')
    ->items([])
    ->sep(' and also ')
    ->append(null)

Will output null :+1:., (*7)

Documentation will be released., (*8)

Made with undefined by Wesley Schleumer, (*9)

The Versions

01/04 2018

dev-master

9999999-dev

Humanized list and shit, cuz' we are human afterall

  Sources   Download

The UNLICENSE

The Requires

  • php >=7.1

 

The Development Requires

by Wesley Schleumer

27/08 2017

1.0.1

1.0.1.0

Humanized list and shit, cuz' we are human afterall

  Sources   Download

The UNLICENSE

The Requires

  • php >=7.1

 

The Development Requires

by Wesley Schleumer

26/08 2017

1.0.0

1.0.0.0

Humanized list and shit, cuz' we are human afterall

  Sources   Download

The UNLICENSE

The Requires

  • php >=7.1

 

The Development Requires

by Wesley Schleumer