<commit_before># ElasticEmailPHP 
[![unit_tests][unit_tests_badge]][unit_tests]
[![unit_tests][unit_tests_badge]][unit_tests]
[![integration_tests][integration_tests_badge]][integration_tests]  
[![Packagaist][packagist_badge]][packagist]
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/386386ba-fbe5-4a50-a51c-07bfd7b3617f/mini.png)](https://insight.sensiolabs.com/projects/386386ba-fbe5-4a50-a51c-07bfd7b3617f)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/rdok/elasticemail-php/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/rdok/elasticemail-php/?branch=master)
  
ElasticEmailPHP is a PHP Library for interacting with [Elastic Email platform API](http://api.elasticemail.com/public/help).

### Example
```php
$elasticEmail = new \ElasticEmail\ElasticEmail('your_elastic_api_key');

$elasticEmail->email()->send([
    'to'      => 'to_email',
    'subject' => 'subject',
    'from'    => 'from_email'
]);
```

### Installation
Using [composer](https://getcomposer.org/download/)
```bash
composer require rdok/elasticemail-php
```

### Supported features
##### [Email](http://api.elasticemail.com/public/help#Email_header)<commit_msg>Highlight path to more usage examples.<commit_after># ElasticEmailPHP 
[![unit_tests][unit_tests_badge]][unit_tests]
[![unit_tests][unit_tests_badge]][unit_tests]
[![integration_tests][integration_tests_badge]][integration_tests]  
[![Packagaist][packagist_badge]][packagist]
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/386386ba-fbe5-4a50-a51c-07bfd7b3617f/mini.png)](https://insight.sensiolabs.com/projects/386386ba-fbe5-4a50-a51c-07bfd7b3617f)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/rdok/elasticemail-php/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/rdok/elasticemail-php/?branch=master)
  
ElasticEmailPHP is a PHP Library for interacting with [Elastic Email platform API](http://api.elasticemail.com/public/help).

### Example
```php
$elasticEmail = new \ElasticEmail\ElasticEmail('your_elastic_api_key');

$elasticEmail->email()->send([
    'to'      => 'to_email',
    'subject' => 'subject',
    'from'    => 'from_email'
]);
```
> See [integration tests](https://github.com/rdok/elasticemail-php/tree/main/tests/Integration/Email) for more examples.

### Installation
Using [composer](https://getcomposer.org/download/)
```bash
composer require rdok/elasticemail-php
```

### Supported features
##### [Email](http://api.elasticemail.com/public/help#Email_header)
{'fraction_non_alphanumeric': 0.1766347687400319, 'fraction_numerical': 0.030303030303030304, 'mean_word_length': 6.649390243902439, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, 'https://': 11, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1287519', 'n_tokens_mistral': 991, 'n_tokens_neox': 896, 'n_words': 98}