Download the PHP package minchao/every8d-php without Composer

On this page you can find all versions of the php package minchao/every8d-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 every8d-php

every8d-php

Build Status Latest Stable Version Latest Unstable Version composer.lock

every8d-php 是 EVERY8D SMS HTTP API 2.1 的非官方 PHP Client SDK,使用前請先確認您已申請 EVERY8D 簡訊帳號。若您想在 Laravel 下使用,請參考 every8d-laravel 提供的 Service provider。

支援的 APIs:

執行環境

安裝

推薦使用 Composer 安裝 every8d-php SDK,請在您的專案下執行:

使用

初始化 Client,設定 EVERY8D 帳號與密碼。

範例

發送 SMS

Example:

Result:

查詢 SMS 發送狀態

Example:

Result:

查詢餘額

Example:

Result:

使用 Webhook 接收簡訊發送回報

若您的帳號有設定 callback 回報網址,簡訊伺服器就會在簡訊發送後以 HTTP GET 方法通知回報網址。您可參考 webhook 中的範例來接收簡訊發送回報。

啟動 Webhook:

使用 PHP Built-in web server 快速啟動一個 Webhook 服務。

注意:PHP Built-in web server 僅供開發測試使用,請不要使用在正式環境或公用網路上

回報範例:

這是一個發送 SMS 後,接收到的回報範例。

開發

開發工具

本專案提供 Command Line Developer Tools,供您在開發時作為測試工具使用。

指令:

發送 SMS 範例如下:

測試

執行 PHPCS 與 Unit tests。

產生測試覆蓋率報告。

License

This library is distributed under the BSD-style license found in the LICENSE file.


All versions of every8d-php with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
guzzlehttp/guzzle Version ^6.3 || ^7.0
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 minchao/every8d-php contains the following files

Loading the files please wait ....