2017 © Pedro Peláez
 

library postmark-inbound-laravel

This is an Inbound Parser for Postmark meant to be used with Laravel.

image

camelcased/postmark-inbound-laravel

This is an Inbound Parser for Postmark meant to be used with Laravel.

  • Thursday, June 8, 2017
  • by camelCaseD
  • Repository
  • 4 Watchers
  • 12 Stars
  • 1,311 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 12 Versions
  • 0 % Grown

The README.md

Laravel Postmark Inbound Parser

Build Status Coverage Status Scrutinizer Code Quality, (*1)

This is an Inbound Parser for Postmark meant to be used with Laravel., (*2)

How To Use

Config

Add the following service provider to app/config/app.php:, (*3)

'Camelcased\Postmark\PostmarkServiceProvider',

You can also add the following alias:, (*4)

'PostmarkEmail'   => 'Camelcased\Postmark\PostmarkEmail',

Basics

Then anywhere within your app you can use the following:, (*5)

PostmarkEmail::from();
PostmarkEmail::to();
PostmarkEmail::body(); // Auto-detects if message contains html or text only.
PostmarkEmail::bodyIsText();
PostmarkEmail::bodyIsHtml();
PostmarkEmail::subject();
PostmarkEmail::replyTo();
PostmarkEmail::cc(); // Returns array if more than one. Ex: ['someone@somewhere.com', 'hi@awesome.com']. Returns string if only one.
PostamrkEmail::bcc(); // Returns same as cc;

Attachments

Attachments are slightly more complicated:, (*6)

PostmarkEmail::hasAttachments() // Returns true or false
PostmarkEmail::attachments(); // Returns array of attachments

Looping through multiple attachments:, (*7)

if (PostmarkEmail::hasAttachments())
{
  $attachments = PostmarkEmail::attachments();

  foreach ($attachments as $attachment) {
    $attachment->Name();
    $attachment->Content(); // Returns base64 encoded string
    $attachment->DecodedContent(); // Returns decoded value
    $attachment->Type(); // Or use $attachment->MIME()
  }
}

License

MIT license, (*8)

The Versions

08/06 2017

dev-master

9999999-dev

This is an Inbound Parser for Postmark meant to be used with Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Brandon Borders

laravel parser email postmark inbound

08/06 2017

0.7.1

0.7.1.0

This is an Inbound Parser for Postmark meant to be used with Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Brandon Borders

laravel parser email postmark inbound

08/03 2017

0.7.0

0.7.0.0

This is an Inbound Parser for Postmark meant to be used with Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Brandon Borders

laravel parser email postmark inbound

08/03 2017

0.6.0

0.6.0.0

This is an Inbound Parser for Postmark meant to be used with Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Brandon Borders

laravel parser email postmark inbound

29/01 2016

0.5.0

0.5.0.0

This is an Inbound Parser for Postmark meant to be used with Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Brandon Borders

laravel parser email postmark inbound

21/08 2015

0.4.2

0.4.2.0

This is an Inbound Parser for Postmark meant to be used with Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Brandon Borders

laravel parser email postmark inbound

23/07 2015

dev-remove-php-5-4-for-l5-0

dev-remove-php-5-4-for-l5-0

This is an Inbound Parser for Postmark meant to be used with Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Brandon Borders

laravel parser email postmark inbound

23/07 2015

0.3.2

0.3.2.0

This is an Inbound Parser for Postmark meant to be used with Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Brandon Borders

laravel parser email postmark inbound

23/07 2015

0.4.1

0.4.1.0

This is an Inbound Parser for Postmark meant to be used with Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Brandon Borders

laravel parser email postmark inbound

23/07 2015

0.4.0

0.4.0.0

This is an Inbound Parser for Postmark meant to be used with Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Brandon Borders

laravel parser email postmark inbound

23/07 2015

0.3.1

0.3.1.0

This is an Inbound Parser for Postmark meant to be used with Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Brandon Borders

laravel parser email postmark inbound

14/08 2014

0.2.0

0.2.0.0

This is an Inbound Parser for Postmark meant to be used with Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Brandon Borders

laravel parser email postmark inbound