PHPackages                             messenger\_os/messenger\_os-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. messenger\_os/messenger\_os-php

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

messenger\_os/messenger\_os-php
===============================

This library allows easily sending emails through MessengerOS using PHP.

V1.5(2y ago)058MITPHPPHP &gt;=7.4

Since Nov 16Pushed 2y ago2 watchersCompare

[ Source](https://github.com/messengerOS/messengerOS-php)[ Packagist](https://packagist.org/packages/messenger_os/messenger_os-php)[ RSS](/packages/messenger-os-messenger-os-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)DependenciesVersions (7)Used By (0)

[![MessengerOS Logo](messenger_os-logo.png)](messenger_os-logo.png)

**This library allows you to quickly and easily send emails, SMSes and web push notifications with MessengerOS API via PHP**

Table of Contents
=================

[](#table-of-contents)

- [Installation](#installation)
- [Quick Start](#quick-start)
- [About](#about)

Installation
============

[](#installation)

Prerequisites
-------------

[](#prerequisites)

- Compatible with PHP Version 7.4 and above.
- A MessengerOS active account is needed - we offer 3,000 free emails each month, **without adding our logo to your emails**. You need more? Check our [pricing here](https://messengeros.com/pricing-plans/).

Setup Environment Variables
---------------------------

[](#setup-environment-variables)

1. Copy the sample env file to a new file named `.env`

```
cp .env.sample .env
```

2. Edit the `.env` file to include `the following API KEYS` that live in your MessengerOS account.

```
MESSENGER_OS_USER_KEY - from your account information
MESSENGER_OS_PROJECT_KEY - from the current project dashboard
MESSENGER_OS_EMAIL_DELIVERY_PROVIDER_KEY - from the Delivery Channel information
MESSENGER_OS_SMS_DELIVERY_PROVIDER_KEY - from the Delivery Channel information
MESSENGER_OS_SEND_URL="https://inbound.messengeros.com/1.0/send"
```

Install Package
---------------

[](#install-package)

```
composer require messenger_os/messenger_os-php
```

Quick Start
===========

[](#quick-start)

Include the proper lines from below at the top of each example based on your installation method:

```
