PHPackages                             mailmantra/apiclient - 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. mailmantra/apiclient

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

mailmantra/apiclient
====================

Client Library for Mail Mantra APIs

v0.0.2(7mo ago)068MITPHPPHP &gt;=7.3CI failing

Since Jul 23Pushed 7mo ago3 watchersCompare

[ Source](https://github.com/mail-mantra/mail-mantra-api-php-client)[ Packagist](https://packagist.org/packages/mailmantra/apiclient)[ Docs](http://https://github.com/mail-mantra/mail-mantra-api-php-client)[ RSS](/packages/mailmantra-apiclient/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Mail Mantra APIs Client Library for PHP
=======================================

[](#mail-mantra-apis-client-library-for-php)

[![Stable](https://camo.githubusercontent.com/c13a08e5a6bbd5bda7c270bea4a43d3ecb33153efb977450f13d3969432fbffe/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f737461626c652d76302e302e322d626c75652e737667)](https://packagist.org/packages/mailmantra/apiclient#0.0.2)[![License](https://camo.githubusercontent.com/247a73988cc06a47be5cee4107ff7392fa02bd04c2a902179f4f396d4e589164/68747470733a2f2f706f7365722e707567782e6f72672f72617a6f727061792f72617a6f727061792f6c6963656e73652e737667)](https://packagist.org/packages/mailmantra/apiclient)

The Mail Mantra API Client Library enables you to work with Mail Mantra APIs such as SMS, Email, KYC or Pay on your server.

These client libraries are officially supported by Mail Mantra. However, the libraries are considered complete and are in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features.

Requirements
------------

[](#requirements)

- [PHP 7.3 or higher](https://www.php.net/)

Developer Documentation
-----------------------

[](#developer-documentation)

The [docs folder](docs/) provides detailed guides for using this library.

Installation
------------

[](#installation)

You can use **Composer** or simply **Download the Release**

### Composer

[](#composer)

The preferred method is via [composer](https://getcomposer.org/). Follow the [installation instructions](https://getcomposer.org/doc/00-intro.md) if you do not already have composer installed.

Once composer is installed, execute the following command in your project root to install this library:

```
composer require mailmantra/apiclient
```

Finally, be sure to include the autoloader:

```
require_once '/path/to/your-project/vendor/autoload.php';
```

Examples
--------

[](#examples)

See the [`examples/`](examples) directory for examples of the key client features. You can view them in your browser by running the php built-in web server.

```
$ php -S localhost:8000 -t examples/

```

And then browsing to the host and port you specified (in the above example, `http://localhost:8000`).

### Basic Example

[](#basic-example)

```
// include your composer dependencies
require_once 'vendor/autoload.php';

$mmSMS = new MailMantra\Sms("YOUR_APP_KEY");

$api_data = $mmSMS->balance();

echo "Balance: ".$api_data['message'];

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance62

Regular maintenance activity

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~479 days

Total

2

Last Release

231d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/371934?v=4)[Milan Sahana](/maintainers/milansahana)[@milansahana](https://github.com/milansahana)

---

Top Contributors

[![milan-sahana](https://avatars.githubusercontent.com/u/14888119?v=4)](https://github.com/milan-sahana "milan-sahana (6 commits)")

---

Tags

smspaysmtpkycMail Mantramailmantra

### Embed Badge

![Health badge](/badges/mailmantra-apiclient/health.svg)

```
[![Health](https://phpackages.com/badges/mailmantra-apiclient/health.svg)](https://phpackages.com/packages/mailmantra-apiclient)
```

###  Alternatives

[mageplaza/module-smtp

SMTP Extension for Magento 2 helps the owner of store simply install SMTP (Simple Mail Transfer Protocol) server which transmits the messages into codes or numbers

3116.2M9](/packages/mageplaza-module-smtp)[nette/mail

📧 Nette Mail: A handy library for creating and sending emails in PHP.

54010.2M282](/packages/nette-mail)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2588.4M17](/packages/laravel-notification-channels-twilio)[zytzagoo/smtp-validate-email

Perform email address verification via SMTP

451963.2k3](/packages/zytzagoo-smtp-validate-email)[sendgrid/smtpapi

Build SendGrid X-SMTPAPI headers in PHP.

686.6M2](/packages/sendgrid-smtpapi)[mlocati/spf-lib

Parse, build and validate SPF (Sender Policy Framework) DNS records

68955.6k4](/packages/mlocati-spf-lib)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
