2017 © Pedro Peláez
 

library tramezzino

Converts a list of strings into a compact, readable representation with delimiters of choice

image

emeraldion/tramezzino

Converts a list of strings into a compact, readable representation with delimiters of choice

  • Monday, January 23, 2017
  • by claudiopro
  • Repository
  • 1 Watchers
  • 0 Stars
  • 367 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Build Status Coverage Status Latest Unstable Version composer.lock Total Downloads Monthly Downloads, (*1)

tramezzino

Converts a list of strings into a compact, readable representation with delimiters of choice, (*2)

tramezzino.php 'alba,albero,albergo,alberto'
# => alb(a|er(go|o|to))

tramezzino.php 'aria:arianna' ':' '[' '+' ']'
# => aria[+nna]

What?

In Italian, tramezzino means sandwich. The name hints at the strings being sliced and interleaved with bread, the delimiters. Tramezzino is the PHP port of the Node module sarnie., (*3)

Why?

Useful when you need to pass long lists of URL params, (*4)

Composer

Add it to your PHP project using Composer:, (*5)

composer require emeraldion/tramezzino

Then have it your way:, (*6)


License

MIT, (*7)

Copyright (c) 2017-2023, Claudio Procida, (*8)

The Versions

23/01 2017

dev-master

9999999-dev https://github.com/emeraldion/tramezzino

Converts a list of strings into a compact, readable representation with delimiters of choice

  Sources   Download

MIT

The Requires

 

The Development Requires

library shorten shrink compress summarize