• Stars
    star
    158
  • Rank 237,131 (Top 5 %)
  • Language
    PHP
  • License
    BSD 2-Clause "Sim...
  • Created over 10 years ago
  • Updated 12 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

This repository contains the open source PHP client for MessageBird's REST API.

MessageBird's REST API for PHP

This repository contains the open source PHP client for MessageBird's REST API. Documentation can be found at: https://developers.messagebird.com/

Build Status Latest Stable Version License

Requirements

  • Sign up for a free MessageBird account
  • Create a new access_key in the developers sections
  • MessageBird API client for PHP requires PHP >= 7.3.

Installation

Composer installation

Manual installation

When you do not use Composer. You can git checkout or download this repository and include the MessageBird API client manually.

Usage

We have put some self-explanatory examples in the examples directory, but here is a quick breakdown on how it works. First, you need to set up a MessageBird\Client. Be sure to replace YOUR_ACCESS_KEY with something real.

require 'autoload.php';

$messageBird = new \MessageBird\Client('YOUR_ACCESS_KEY');

That's easy enough. Now we can query the server for information. Lets use getting your balance overview as an example:

// Get your balance
$balance = $messageBird->balance->read();

Conversations WhatsApp Sandbox

To use the WhatsApp sandbox you need to add \MessageBird\Client::ENABLE_CONVERSATIONSAPI_WHATSAPP_SANDBOX to the list of features you want enabled. Don't forget to replace YOUR_ACCESS_KEY with your actual access key.

$messageBird = new \MessageBird\Client('YOUR_ACCESS_KEY', null, [\MessageBird\Client::ENABLE_CONVERSATIONSAPI_WHATSAPP_SANDBOX]);

If you use a custom HttpClient you will have to manually direct Conversation API request to the WhatsApp sandbox endpoint.

Documentation

Complete documentation, instructions, and examples are available at: https://developers.messagebird.com/

License

The MessageBird REST Client for PHP is licensed under The BSD 2-Clause License. Copyright (c) 2014, MessageBird

More Repositories

1

sachet

SMS alerts for Prometheus' Alertmanager
Go
216
star
2

go-rest-api

MessageBird's REST API for Go
Go
120
star
3

messagebird-nodejs

The open source Node.js client for MessageBird's REST API
JavaScript
105
star
4

pushprom

Pushprom is a proxy to the Prometheus Go client.
Go
80
star
5

python-rest-api

This repository contains the open source Python client for MessageBird's REST API.
Python
65
star
6

csharp-rest-api

This repository contains the open source C# client for MessageBird's REST API.
C#
54
star
7

java-rest-api

This repository contains the open source Java client for MessageBird's REST API.
Java
50
star
8

clickhouse-postgres-fdw

This project provides federated access to Clickhouse cluster from Postgres, with the ability to write FDW API functions in GO.
Go
45
star
9

ruby-rest-api

MessageBird's REST API for Ruby
Ruby
37
star
10

beanstalkd_exporter

A beanstalkd stats exporter for Prometheus
Go
34
star
11

slackincident

This node.js app is allowing you to start an incident management process via a Slack slash command.
JavaScript
27
star
12

gcppromd

Prometheus GCP discovery
Go
18
star
13

mysql-monitor

A tool to monitor mysql databases
Go
12
star
14

firestore-send-msg

Source code for MessageBird Firebase send message extension
TypeScript
11
star
15

python-grpc-argument-validator

Python
7
star
16

pushprom-php-client

PHP client for Pushprom
PHP
6
star
17

dart-rest-api

MessageBird's REST API for Dart
Dart
5
star
18

messagebird-magento-integration

Integrate magento (v2) with the MessageBird Flow Builder
PHP
3
star
19

messagebird-magento

PHP
3
star
20

pushprom-yii2-client

Yii 2 client for Pushprom
PHP
2
star
21

openapi-specs

Open API specifications of MessageBird public API's
1
star