Download the PHP package glz/dayu-client without Composer

On this page you can find all versions of the php package glz/dayu-client. 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 dayu-client

dayu-client 阿里大鱼发送短信客户端

这是一个超简单的客户端,只有不到70行的代码,实现了利用阿里大鱼发送短信的功能。但是,我只拼装了接口地址出来,接下来您可以用curl 等工具都能取到接口的内容,也可以用guzzleHttp,snoopy第三方包来取得这个url地址的内容。所以,我根本就没有添加任何进行接口访问的依赖。 最好看一下代码,因为实在太短了,没有理由不看啊。。。。

安装方法:

composer 安装 :

如果不会composer,直接从github上把文件拉下来也行,反正源代码目录就一个文件。

使用方法

直接上代码了

入坑心得

  1. 坑点之一:生成时间字符串的时候,要UTC的时区,所以,看代码,我们临时切到UTC了。
  2. 坑点之二,他们的接口可能经常换,所以,我也不知道什么时候就不能用了。。。。
  3. 不小心就把appkey 和我的secret写出来了 还好我第一时间删除了。

All versions of dayu-client with dependencies

PHP Build Version
Package Version
Requires php Version >=5.2.0
guzzlehttp/guzzle Version ^6.3
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 glz/dayu-client contains the following files

Loading the files please wait ....