bitandblack/sentence-construction

Creates nice sentences

1.1.0 2020-04-03 07:13 UTC

This package is auto-updated.

Last update: 2020-09-03 08:24:06 UTC


README

PHP from Packagist Codacy Badge Latest Stable Version Total Downloads License

Sentence construction

Creates nice sentences.

Installation

This library is made for the use with Composer. Add it to your project by running $ composer require bitandblack/sentence-construction.

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.