Giter Site home page Giter Site logo

catsone / php-bandwidth Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bandwidth/php-bandwidth

0.0 1.0 0.0 7.84 MB

PHP SDK for Bandwidth Voice and Messaging APIs

Home Page: http://dev.bandwidth.com/

License: MIT License

Shell 0.02% PHP 99.98%

php-bandwidth's Introduction

PHP-bandwidth

SDK for Bandwidth's App Platform

Installing:

to install, with composer

composer require bandwidth/catapult

OR after cloning:

composer update

Running from source

You can also use Bandwidth without composer, you only need to include "Catapult.php" from /source/

Example:

require "source/Catapult.php"

API keys

REMEMBER to configure your API keys. You can do this in 'one' of two ways:

  1. Update credentials.json with your keys. If you use this method, use this constructor:

    $cred = new Catapult\Credentials;

    Also, be sure to protect that file from external access

  2. Specify your keys to the Catapult client. If you use this method, use this constructor

$cred = new Catapult\Credentials('your Bandwidth App Platform user-id here', 'your bandwidth app platform token here', 'your bandwidth api secret here');

unit tests.

In ./tests there are a list of tests to run any we need phpunit:

composer require phpunit

and to run a rest:

php phpunit.phar --bootstrap ../source/Catapult.php {test_name}

where test name can be any of the listed tests.

Requirements

  • needed:
  • php >= 5.3.0
  • libCurl

optional:

  • openSSL

php-bandwidth's People

Contributors

anthonycats avatar bwdan avatar covati avatar ffranco-daitan avatar gforrest-bw avatar guaycuru avatar lnunes-daitan avatar nadirhamid avatar smitchell2240 avatar soundslocke avatar tobiaslounsbury avatar troft avatar tylercd100 avatar uakfdotb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.