bitandblack/sentence-construction

Creates nice sentences

1.0.0 2019-06-21 12:42 UTC

This package is auto-updated.

Last update: 2020-02-21 14:50:16 UTC


README

Codacy Badge

Sentence construction

Creates nice sentences.

Installation

Use Composer to install by running $ composer require bitandblack/sentence-construction and $ composer update.

Usage

Just call the method like that:

<?php

use BitAndBlack\SentenceConstruction;

$fruits = [
    'Apples', 
    'Bananas', 
    'Pears'
];

$sentence = SentenceConstruction::getImplodedSentence(', ', ' and ', $fruits);

var_dump('I like '.$sentence);

This will dump I like Apples, Bananas and Pears.

Help

If you have any questions feel free to contact us under sentence-construction@bitandblack.com.