bitandblack / sentence-construction
Creates nice sentences
Fund package maintenance!
Buymeacoffee
Requires
- php: >=8.0
Requires (Dev)
- phpstan/phpstan: ^1.0
- phpunit/phpunit: ^10.0
- rector/rector: ^1.0
- symplify/easy-coding-standard: ^12.0
Suggests
- bitandblack/german-words: A huge list of german words and their grammar rules
README
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
Create a sentence like that:
<?php
use BitAndBlack\SentenceConstruction;
$fruits = [
'Apples',
'Bananas',
'Pears'
];
$sentence = new SentenceConstruction(
glue: ', ',
glueLast: ' and ',
pieces: $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 hello@bitandblack.com
.
Further information about Bit&Black can be found under www.bitandblack.com.