| Recommend this page to a friend! | 
|  Download | 
| Info | Documentation |  Files |  Install with Composer |  Download | Reputation | Support forum | Blog | Links | 
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not enough user ratings | Total: 86 | All time:  10,022 This week: 455  | ||||
| Version | License | PHP version | Categories | |||
| letter-composer-mult 1.0 | Custom (specified... | 5 | Email, Localization, PHP 5, Text proc... | 
| Description | Author | |
| This class can generate personal salutations to use in messages. Innovation Award | 
Provides methods useful for composing letters (mail).
If you intend to use Czech language, you will also need to install library peterkahl/czech-name-declension.
use peterkahl\LetterComposer\LetterComposer;
$letterObj = new LetterComposer;
$letterObj->senderNamePlain = 'Customer Service Representative'. PHP_EOL .'Famous Company, Ltd.';
$letterObj->senderNameHtml  = 'Customer Service Representative<br>Famous Company, Ltd.';
# Example, Russian
$letterObj->lang            = 'ru';
$letterObj->recipientName   = '?????? ?????????';
$letterObj->recipientGender = 'f';
echo $letterObj->$letterObj->makeSalutation() . PHP_EOL . PHP_EOL . '??? ??? ????? ??????.' . PHP_EOL . PHP_EOL . $letterObj->makeValedictionPlain();
/*
'????????? ?????? ?????????,
??? ??? ????? ??????.
? ?????????,
Customer Service Representative
Famous Company, Ltd.'
*/
# Example, Czech
$letterObj->lang            = 'cs';
$letterObj->recipientName   = 'Václav ?tvrtek';
$letterObj->recipientGender = 'm';
echo $letterObj->$letterObj->makeSalutation() . PHP_EOL . PHP_EOL . 'Zde je Va?e nové heslo.' . PHP_EOL . PHP_EOL . $letterObj->makeValedictionPlain();
/*
'Milý Václave ?tvrtku,
Zde je Va?e nové heslo.
S pozdravem,
Customer Service Representative
Famous Company, Ltd.'
*/
|  Files (4) | 
| File | Role | Description | ||
|---|---|---|---|---|
|  src (1 file) | ||||
|    composer.json | Data | Auxiliary data | ||
|    LICENSE | Lic. | License text | ||
|    README.md | Doc. | Documentation | ||
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. | 
|  Install with Composer | 
|  | letter-composer-mult-2019-10-15.zip 6KB | 
|  | letter-composer-mult-2019-10-15.tar.gz 6KB | 
|  | Install with Composer | 
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% | 
 | 
 | 
| Applications that use this package | 
 If you know an application of this package, send a message to the author to add a link here.
 If you know an application of this package, send a message to the author to add a link here.