2017 © Pedro Peláez
 

library salutation

Salutation generator

image

smhg/salutation

Salutation generator

  • Tuesday, December 13, 2016
  • by smhg
  • Repository
  • 2 Watchers
  • 3 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 3 Open issues
  • 6 Versions
  • 3 % Grown

The README.md

salutation Build status

Generates a salutation based on predefined formats., (*1)

Use case

In e-mails, dashboards and others, you often want to start with a personalised greeting. This might be to multiple people, of which you might have complete, partial or no names available. Some might have titles which are to be used when adressing them. And things might differ across locales., (*2)

As an example, you might need to greet a list of 3 users: one is a regular person (Joe Bloggs), one is a company without a contact's name (ACME) and one a physician/doctor (Jane Smith). First name concatenation would lead to:, (*3)

Dear Joe, , Jane,

While what you want is:, (*4)

Dear Joe, Dr. Smith,

Installation

composer require smhg/salutation

Usage

use Salutation;

$salutation = new Salutation('nl_BE', array(
    array(
        'first' => 'Jan',
        'last' => 'Jansens'
    ),
    array(
        'title' => 'Dr.',
        'first' => 'Peter',
        'last' => 'Peters'
    )
));

echo $salutation;
// Beste Jan, Dr. Peters,

Features

  • Locale aware formatting
  • Title based formatting
  • Nameless greeting

The Versions

13/12 2016

dev-master

9999999-dev

Salutation generator

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar smhg

13/12 2016

v0.1.4

0.1.4.0

Salutation generator

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar smhg

18/11 2016

v0.1.3

0.1.3.0

Salutation generator

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar smhg

25/10 2016

v0.1.2

0.1.2.0

Salutation generator

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar smhg

14/04 2015

v0.1.1

0.1.1.0

Salutation generator

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar smhg

14/04 2015

v0.1.0

0.1.0.0

Salutation generator

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar smhg