2017 © Pedro Peláez
 

library petcetera

Petcetera is a php library to provide output raw concatenation of elements with commas and terminators of different languages.

image

marcossegovia/petcetera

Petcetera is a php library to provide output raw concatenation of elements with commas and terminators of different languages.

  • Sunday, May 8, 2016
  • by MarcosSegovia
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Petcetera

A php library to provide output raw concatenation of elements with commas and terminators of different languages., (*1)

Installation

$ composer require marcossegovia/petcetera;

Usage

Given an array of string elements like the following:, (*2)

    $my_array_of_string_elements = [
        'element1',
        'element2',
        'element3',
        'element4'
    ];

Then you only have to instantiate Petcetera and use call it as a function, on:, (*3)

  • 1st parameter is your array of elements.
  • 2on parameter is a locale string specifying the language you want to provide for the terminator.
        $petcetera_instance   = new Petcetera();
        $resulting_string = $petcetera_instance($my_array_of_string_elements, 'en_GB'); // outputs: element1, element2, element3 and element4
        $resulting_string2 = $petcetera_instance($my_array_of_string_elements, 'es_ES'); //outputs: element1, element2, element3 y element4

The Versions

08/05 2016

dev-master

9999999-dev https://www.marcossegovia.com

Petcetera is a php library to provide output raw concatenation of elements with commas and terminators of different languages.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

php locale multilingual util concatenation

08/05 2016

v1.0.0

1.0.0.0 https://www.marcossegovia.com

Petcetera is a php library to provide output raw concatenation of elements with commas and terminators of different languages.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

php locale multilingual util concatenation