Download the PHP package ham0mer/afdian without Composer

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

Afdian

可以用于查询爱发电的订单和赞助者信息与爱发电第三方登录

第三方登录我没申请下来,没测试等测试在更新

安装

composer require ham0mer/afdian

订单使用方法

use \Ham0mer\Afdian\Afdian;
// 初始化 Afdian 对象
$afdian = new Afdian(USERID, TOKEN);

检测 User ID 与 Token 是否有效,与服务器连接是否正常

获取所有的订单列表

在返回的订单列表里进一步查询,根据订单 ID 获取信息

获取所有的赞助者

得到赞助者列表后,根据用户名查询赞助者信息

登录使用方法

另外也可以直接查看 afdian.php,每个方法都写了详细的注释。

Server Return

关于服务器返回的状态码以及更多信息,请查阅官方文档:

https://afdian.net/dashboard/dev

License

本项目使用 MIT 协议开源


All versions of afdian with dependencies

PHP Build Version
Package Version
Requires php Version >=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 ham0mer/afdian contains the following files

Loading the files please wait ....