PHPackages                             afilnet/afilnet-api - 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. afilnet/afilnet-api

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

afilnet/afilnet-api
===================

PHP Library to use Afilet API

v1.0.0(9y ago)381MITPHPPHP &gt;=5.3.3

Since Jun 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Afilnet/api-php)[ Packagist](https://packagist.org/packages/afilnet/afilnet-api)[ RSS](/packages/afilnet-afilnet-api/feed)WikiDiscussions master Synced 1w ago

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

SMS, Email and Voice notifications
==================================

[](#sms-email-and-voice-notifications)

Easy to use
-----------

[](#easy-to-use)

This library is designed to be an easy way to use Afilnet API services. You can send SMS, email and voice notifications using your Afilnet account. This package can be installed with composer using "[composer require afilnet/afilnet-api](https://packagist.org/packages/afilnet/afilnet-api)".

You only need an Afilnet account with enought credits. If you do not have an account, you can create an account in our website in a few minutes.

Index
-----

[](#index)

- [About Afilnet](#afilnet)
    - [Our website](#website)
- [Setup](#setup)
- [API Services](#afilnet-api-service)
    - [SMS](#sms)
    - [Email](#email)
    - [Voice](#voice)
- [Response](#response)

---

Afilnet
-------

[](#afilnet)

[![Afilnet Cloud Marketing Logo](https://camo.githubusercontent.com/840c03b83e2ee170101a655a4dcc984f92147ac4d7960771a9c01c142cd7d637/68747470733a2f2f6166696c6e65742e636f6d2f696d672f6c6f676f64657369676e622e706e67)](https://camo.githubusercontent.com/840c03b83e2ee170101a655a4dcc984f92147ac4d7960771a9c01c142cd7d637/68747470733a2f2f6166696c6e65742e636f6d2f696d672f6c6f676f64657369676e622e706e67)

Afilnet is a company dedicated to Cloud Marketing.

With this module we seek to facilitate the use of the services we offer through our API.

We offer support to our clients if they have some trouble with their accounts or our services.

If you notice some error or bugs, feel free to contact us.

### Website

[](#website)

We are available in 3 different languages:

- [Español - www.afilnet.com](https://www.afilnet.com/)
- [English - www.afilnet.com/en/](https://www.afilnet.com/en/)
- [Français - www.afilnet.com/fr/](https://www.afilnet.com/fr/)

[back to top](#index)

---

Setup
-----

[](#setup)

**ATTENTION: You need an Afilnet account with credits to use this module**

*If you dont have an account, [visit our web page](#website) and create it.*

*After that, you will have to buy some credits to be able to send the notifications*

*We have a promo to test the services which give you 10 credits for free*

Once you have an account, we are ready to setup the module in your app:

The first step is install the module, you can install it using composer or manual installation Composer: "[composer require afilnet/afilnet-api](https://packagist.org/packages/afilnet/afilnet-api)". Then create the object:

```

```

Then login with your account (If you dont login successfully, all services will return error bad username or password).

```

```

And now we are ready to use the services :)

[back to top](#index)

---

Afilnet API Services
--------------------

[](#afilnet-api-services)

There are 3 channels availables:

- [Send SMS](#sms)
- [Send Email](#email)
- [Send Voice](#voice)

This library use the structure:

```

```

The three channels have the same services:

- send (Send to a single user)
- sendFromTemplate (Send to a single user using a template)
- sendToGroup (Send to a defined group)
- sendToGroupFromTemplate (Send to a defined group using a template)
- getDeliveryStatus (Get delivery status of a message)

---

### SMS

[](#sms)

If you want to use SMS you only need to call the object sms and the service required.

#### Services

[](#services)

```
