Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pforret/php_outlook_signature
Create Outlook email signatures from HTML templates
https://github.com/pforret/php_outlook_signature
email microsoft outlook php signatures
Last synced: about 1 month ago
JSON representation
Create Outlook email signatures from HTML templates
- Host: GitHub
- URL: https://github.com/pforret/php_outlook_signature
- Owner: pforret
- License: mit
- Created: 2020-06-20T07:34:28.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-08T13:55:47.000Z (over 4 years ago)
- Last Synced: 2023-07-15T16:21:30.333Z (over 1 year ago)
- Topics: email, microsoft, outlook, php, signatures
- Language: PHP
- Homepage:
- Size: 38.1 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Create Outlook email signatures from a template
[![Latest Version on Packagist](https://img.shields.io/packagist/v/pforret/php_outlook_signature.svg?style=flat-square)](https://packagist.org/packages/pforret/php_outlook_signature)
[![Tests](https://github.com/pforret/php_outlook_signature/workflows/Tests/badge.svg)](https://github.com/pforret/php_outlook_signature/actions)
[![Quality Score](https://img.shields.io/scrutinizer/g/pforret/php_outlook_signature.svg?style=flat-square)](https://scrutinizer-ci.com/g/pforret/php_outlook_signature)
[![Total Downloads](https://img.shields.io/packagist/dt/pforret/php_outlook_signature.svg?style=flat-square)](https://packagist.org/packages/pforret/php_outlook_signature)Create valid Outlook HTML Signatures, from a template with placeholders. Kind of mail merge for Outlook email signatures.
## InstallationYou can install the package via composer:
```bash
composer require pforret/php_outlook_signature
```## Usage
```php
use Pforret\PhpOutlookSignature\PhpOutlookSignature;
$signature = new PhpOutlookSignature("");
$personal_details=[
"person_name" => "Peter Gibbons",
"person_function" => "TPS Manager",
...
];
echo $signature->create("initech/pgibbons.htm",$personal_details);
// this will create the pgibbons.htm email signature, and copy all required files into pgibbons_files/ subfolder.
// it will also generate a install_signature.cmd script for easy installation of the signature into Outlook (Windows)
```## Signature template
* let's say you call your template `waffle`
* your template folder should contain 1 HTML file `waffle.htm`
and one asset folder with all the extra files needed (called `waffle_files`)
* in the assets folder there should be a `filelist.xml`. If not, this package will generate one.
* images in the assets folder that are referenced in the template as `src="/"`
will be included as (hidden) attachments of the email and always show up for the receiver,
i.e. not be filtered out like external images
* the HTML template can contain `{information}` placeholders.
They will be replaced by the actual value of `"information" => "..."` from the $personal_details array.
* a template with an `{information}` placeholder that is not specified in the $personal_details array, will throw an error.## Testing
```bash
composer test
```## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Credits
- [Peter Forret](https://github.com/pforret)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.