neverbounce / neverbounce-php
This package provides convenient methods to integrate the NeverBounce API into your project.
Installs: 860 472
Dependents: 2
Suggesters: 0
Security: 0
Stars: 25
Watchers: 11
Forks: 22
Open Issues: 1
Requires
- php: >=7.1.0
- ext-curl: *
- ext-json: *
Requires (Dev)
- phpstan/phpstan: ^0.11.6
- phpunit/phpunit: ^7.0
- squizlabs/php_codesniffer: 3.*
- dev-master
- v4.5.0
- v4.4.0
- v4.3.0
- v4.2.x-dev
- v4.2.2
- v4.2.1
- v4.2.0
- v4.1.x-dev
- v4.1.7
- 4.1.6
- v4.1.5
- v4.1.4
- v4.1.3
- v4.1.2
- v4.1.1
- v4.1.0
- v4.0.0
- v3.x-dev
- v3.0.6
- v3.0.5
- v3.0.4
- v3.0.3
- v3.0.2
- v3.0.1
- v3.0.0
- v2.0.0-alpha
- v1.1.5-alpha
- v1.1.4-alpha
- v1.0.0
- dev-NB-592-allow-curl-options-to-be-passed-into-php-wrapper
- dev-NB-229-api-parameters-and-version
- dev-protocol_error_4.1
- dev-user_agent_protocol_error
- dev-2.0.x-dev
- dev-1.1.x-dev
- dev-3.0.x-dev
This package is auto-updated.
Last update: 2024-10-29 03:53:01 UTC
README
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