Download the PHP package direct7/direct7-php without Composer

On this page you can find all versions of the php package direct7/direct7-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package direct7-php

Direct7 PHP SDK

PHP SDK to seamlessly incorporate communication features into your PHP applications via the Direct7 REST API. This SDK empowers you to effortlessly initiate SMS,Whatsapp, Slack, Viber messages and 2 factor authentication features.

Documentation

The documentation for the Direct7 REST API can be found here Direct7 API Reference.

Installation

Install the SDK using Composer. Run the following command from project root directory:

To use the bindings, use Composer's autoload:

Usage

To get started you need to have an active Direct7 account, If you haven't yet registered, please proceed to Sign up

Authentication

In order to initiate API requests, create a client object using your Direct7 API token. To obtain an API token, kindly visit the following link: https://app.d7networks.com/api-tokens.

Examples

SMS

Send SMS

Send SMS (Unicode)

Check Request Status

Verify

Send OTP

Re-Send OTP

Verify OTP

Check OTP Request Status

Whatsapp

Send Whatsapp Free-form Message (Location Details)

Send Whatsapp Templated Message.

Send Whatsapp Interactive Message.

Check Whatsapp Request Status

Number Lookup

Search Phone Number Details

Viber

Send Viber Message

Check Request Status

Slack

Send Slack Message

Check Slack Request Status

FAQ

How do I get my API token?

You can get your API token from the Direct7 dashboard. If you don't have an account yet, you can create one for free.

Supported php versions

The SDK supports php 8.1.2 and higher.

Supported APIs

As of now, the SDK supports the following APIs:

API Supported?
SMS API
Verify API
Whatsapp API
Number Lookup API
Viber API
Slack API

How do I get started?

You can find the platform documentation @ Direct7 Docs.

How do I get help?

If you need help using the SDK, you can create an issue on GitHub or email to [email protected]

Contributing

We welcome contributions to the Direct7 PHP SDK. If you have any ideas for improvements or bug fixes, please feel free to create an issue on GitHub.


All versions of direct7-php with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^7.0
php Version ^8.1.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package direct7/direct7-php contains the following files

Loading the files please wait ....