neverbounce/neverbounce-php

This package provides convenient methods to integrate the NeverBounce API into your project.

v4.5.0 2020-08-03 20:56 UTC

README

68747470733a2f2f6e65766572626f756e63652d6d61726b6574696e672e73332e616d617a6f6e6177732e636f6d2f6e65766572626f756e63655f636f6c6f725f36303070782e706e67

Build Status 68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f4e65766572426f756e63652f4e65766572426f756e63654150492d5048502f6261646765732f6770612e737667 68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e65766572626f756e63652f6e65766572626f756e63652d7068702e737667 68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6e65766572626f756e63652f6e65766572626f756e63652d7068702e737667

Looking for the V3 API wrapper? Click here

This is the official NeverBounce API PHP wrapper. It provides helpful methods to quickly implement our API in your existing php applications.

Requirements

  • PHP 7.1 or greater
  • PHP JSON extension
  • PHP cURL extension

For PHP 5.5 - 7.0 use the 4.1 branch

Installation

Composer Installation

This package takes advantage of composer's autoloading features, following the PSR-4 guidelines.

To install using composer you can run

composer require "neverbounce/neverbounce-php":"~4.5.0"

Or add this to your composer.json

{
  "require": {
    "neverbounce/neverbounce-php":"~4.5.0"
  }
}

and run composer install

Manual Installation

You can clone the repo directly and include the files yourself via an auto loader. Keep in mind that this package does follow the PSR-4 spec. git clone https://github.com/creavos/NeverBounceAPI-PHP

Running Examples

First clone or download the repository to your local machine and install the composer dependencies. Once the composer dependencies are installed create a new file in the project's root directory called .api-key.php with the following contents (adding your own API key):

<?php

$api_key = "secrete_api_key_goes_here";

With the API key file created you can now run the examples contained within the example/ directory.

php examples/account-info.php