<commit_before># Inbox Actions

A small library to generate Schema.org markup to embed in emails to achieve ["Actions in Inbox"](https://developers.google.com/gmail/actions/).

To get started, just pull it down with composer (`danharper/inbox-actions`).

```json
{
	"require": {
		"danharper/inbox-actions": "dev-master"
	}
}
```

## Usage

So far, the following "Actions" from Gmail are supported:

* [View](#view)
* [RSVP](#rsvp)
* [Confirm](#confirm)

### View

```php
<?php
use DanHarper\InboxActions\InboxAction;

$action = InboxAction::ViewAction('View Report', 'http://example');

echo $action;<commit_msg>docs2<commit_after># Inbox Actions

A small library to generate Schema.org markup to embed in emails to achieve ["Actions in Inbox"](https://developers.google.com/gmail/actions/).

To get started, just pull it down with composer (`danharper/inbox-actions`).

```json
{
	"require": {
		"danharper/inbox-actions": "dev-master"
	}
}
```

## Usage

So far, the following "Actions" from Gmail are supported:

* [View](#view)
* [RSVP](#rsvp)
* [Confirm / Save](#confirm--save)

### View

```php
<?php
use DanHarper\InboxActions\InboxAction;

$action = InboxAction::ViewAction('View Report', 'http://example');

echo $action;
{'fraction_non_alphanumeric': 0.16653127538586515, 'fraction_numerical': 0.0008123476848090983, 'mean_word_length': 4.980582524271845, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6825121', 'n_tokens_mistral': 436, 'n_tokens_neox': 412, 'n_words': 114}