PHPackages                             snappmarket/smnotif-php-bridge - 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. snappmarket/smnotif-php-bridge

ActiveLibrary

snappmarket/smnotif-php-bridge
==============================

A client package to use snappmarket notifier service.

3.1.2(3y ago)91.6k5[2 PRs](https://github.com/snappmarket/smnotif-php-bridge/pulls)MITPHPPHP ^7.2|^8.0

Since Dec 23Pushed 2y ago2 watchersCompare

[ Source](https://github.com/snappmarket/smnotif-php-bridge)[ Packagist](https://packagist.org/packages/snappmarket/smnotif-php-bridge)[ RSS](/packages/snappmarket-smnotif-php-bridge/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (1)Versions (28)Used By (0)

[![](https://camo.githubusercontent.com/74b8a12c23221266a111c325829b55e8989662f116f57713ae1d8e672515bba5/68747470733a2f2f736e6170702e6d61726b65742f7374617469632f6d656469612f6c6f676f2e64356565393462662e706e67)](https://snapp.market)

[![Total Downloads](https://camo.githubusercontent.com/042e2707dab42843810410ea7606c5d7dfbd36fc5f557115e117b230429407af/68747470733a2f2f706f7365722e707567782e6f72672f736e6170706d61726b65742f736d6e6f7469662d7068702d6272696467652f642f746f74616c2e737667)](https://packagist.org/packages/snappmarket/smnotif-php-bridge)[![Latest Stable Version](https://camo.githubusercontent.com/3bbac96495964ca1d0d2937028eee44cfa106190d7bf436855b8c33a98e3921b/68747470733a2f2f706f7365722e707567782e6f72672f736e6170706d61726b65742f736d6e6f7469662d7068702d6272696467652f762f737461626c652e737667)](https://packagist.org/packages/snappmarket/smnotif-php-bridge)[![License](https://camo.githubusercontent.com/94132bf4e5b110d16edae682b3099d0acb9dc9e337b47297c1cb731c72c2420c/68747470733a2f2f706f7365722e707567782e6f72672f736e6170706d61726b65742f736d6e6f7469662d7068702d6272696467652f6c6963656e73652e737667)](https://packagist.org/packages/snappmarket/smnotif-php-bridge)[![License](https://camo.githubusercontent.com/b5a53dfc701b751840fda215edb3e18ce32946913a40d92c15c4104cf92732c2/68747470733a2f2f706f7365722e707567782e6f72672f736e6170706d61726b65742f736d6e6f7469662d7068702d6272696467652f636f6d706f7365726c6f636b)](https://packagist.org/packages/snappmarket/smnotif-php-bridge)

SnappMarket Notification Service PHP Bridge
-------------------------------------------

[](#snappmarket-notification-service-php-bridge)

This package developed to use [SnappMarket](https://snapp.market) Notification Service.

#### To see full documentation check:

[](#to-see-full-documentation-check)

- TEST : [TEST Documentations](https://notif.t.snapp.market/api/documentation)
- STAGING : [STAGING Documentations](https://notif.s.snapp.market/api/documentation)
- PRODUCTION : [PRODUCTION Documentations](https://notif.snapp.market/api/documentation)
    (note : Don't forget to set Swagger-Token as request header. Value of Swagger-Token is the api key you can get it from Snappmarket Notifier Service)

### Requirements

[](#requirements)

- `PHP >= 7.2.0`
- `JSON PHP Extension`

### installation

[](#installation)

require package inside your `composer.json` file.

`$ composer require snappmarket/smnotif-php-bridge `

### Basic Usage To Send SMS Notification

[](#basic-usage-to-send-sms-notification)

You can use it inside a raw php file or project or a php framework like Laravel or Symfony. The `NotifierApi` class takes four parameters.

- `$api_key` : The Api Key that your get from Notifier Service.
- `$api_version` : The api version that you are using ex:1
- `$is_secure` : if true call service with 'https' else calls with 'http'.
- `$app_env` : The application environment that you are using (including `NotifierApi::PRODUCTION`, `NotifierApi::STAGE`, `NotifierApi::TEST`)

#### 1- raw php file

[](#1--raw-php-file)

```
