PHPackages                             phelix/safaricom-sdp - 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. [API Development](/categories/api)
4. /
5. phelix/safaricom-sdp

ActivePackage[API Development](/categories/api)

phelix/safaricom-sdp
====================

An encapsulation of the Safaricom SDP platform eg premium sms (MT and MO), bulk sms et al

v1.0.6(5y ago)13435Apache-2.0TeX

Since Sep 28Pushed 5y ago1 watchersCompare

[ Source](https://github.com/kuza-lab/safaricom-sdp)[ Packagist](https://packagist.org/packages/phelix/safaricom-sdp)[ RSS](/packages/phelix-safaricom-sdp/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (2)Versions (8)Used By (0)

Safaricom SDP SDK by Phelix Juma
================================

[](#safaricom-sdp-sdk-by-phelix-juma)

This is a PHP SDK wrapper for Safaricom SDP. Safaricom SDK allows PRSP content providers to integrate their systems with Safaricom's platform.

Included SDP Services
=====================

[](#included-sdp-services)

- Token
    - Get Token API : getting a token
    - Refresh Token API : getting a refresh token
- Subscription API
    - Activate API : for subscribing a new user
    - Deactivate API : for deactivating a user from the subscription
- Premium SMS
    - SendSMS API : Sending SMS to a user in a premium service
- Bulk SMS
    - Bulk SMS API : Sending Bulk SMS to a set of users

Requirements
============

[](#requirements)

- PHP &gt;= 7.1
- ext-json
- ext-openssl
- ext-mbstring
- ext-openssl
- ext-iconv
- ext-curl
- guzzlehttp/guzzle: "^7.1"

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

[](#installation)

```
composer require phelix/safaricom-sdp

```

How To test
===========

[](#how-to-test)

To test the package, copy the file "LoadEnv.php.example" in src/tests directory to "LoadEnv.php" and fill in the configuration values required and then run the following command

```
phpunit test

```

Documentation
=============

[](#documentation)

The docs folder has the technical documentation of each of the classes,methods, properties, namespaces et al. In order for you to make references to know what a class does or what a function does or what each of the method parameters mean, then the docs have an elaborate description for each of them.

1. Send Premium SMS
-------------------

[](#1-send-premium-sms)

This is used when sending a premium SMS service to a user; typically an MT message.

```
