Download the PHP package sureyee/laravel-rock-fintech without Composer

On this page you can find all versions of the php package sureyee/laravel-rock-fintech. 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 laravel-rock-fintech

laravel钜石接口API

项目介绍

rock-fintech的laravel封装,加入事件,控制台等机制。dev-master为开发包,请谨慎使用

安装说明

  1. 安装接口包

    composer require sureyee/laravel-rock-fentech

  2. 运行 php artisan vendor:publish 发布配置项文件

使用说明

所有的接口均使用API接口中的service名称的小驼峰形式命名,可以通过Facade门面直接调用。

  1. 调用接口:

    1. 非批次调用

    2. 批次调用

      批次调用首先要创建一个Transformer类,实现TransformerInterface接口。

      接口调用

    3. 添加custom参数

      Rock::createAccountP()->custom(['one' => 1])->send()

      custom 方法接收一个string或者array用作自定义参数。数组会在放入Request前转换为json字符串.

  2. 处理异步回调

    异步回调均通过事件解耦,可以在config文件中自定义回调触发事件,然后通过事件订阅者进行执行。

    如果是推送到队列进行处理,抛出错误是没有办法被捕捉的。 并且会直接输出success

  3. 系统维护

    如果接口系统进入维护可以在artisan中执行命令来关闭接口的请求,该功能不会影响业务的回调操作

    php artisan rock:down 命令会让系统进入维护状态,所有接口请求均会抛出SystemDownException错误。

    捕捉错误后可以通过Rock::getSystemMaintenanceTime() 方法获取系统维护的开始时间和结束时间。

    命令提供start参数指定系统维护开始时间,如:php artisan rock:down tomorrow 则明天开始进行维护

    命令提供--h 选项指定系统维护时长,单位是小时,如:php artisan rock:down --h=2 现在开始进入维护,维护时间2小时,2小时后自动开启服务。

    php artisan rock:up 手动启动系统服务

  4. 事件

    RockCallback 事件。 RockCallback 事件用于处理接口的异步回调,如果没有在配置项中指定 service 的回调事件,则默认触发该事件。

    RockBeforeRequest 事件,会在请求之前触发,通过 $event->request 可以获得请求的 Request 对象。

    RockAfterRequest 事件,会在同步回调完成之后触发,通过 $event->request 可以获得 Request 对象, $event->response 可以获得同步回调的 Response 对象。

  5. future
    1. 账单数据自动读取
    2. request快速撤销
    3. request重发
    4. 自动对账
    5. 测试数据模拟回调

All versions of laravel-rock-fintech with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
laravel/framework Version ^5.5|^5.6
sureyee/rock-fintech Version ^1.1
league/flysystem-sftp Version ^1.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 sureyee/laravel-rock-fintech contains the following files

Loading the files please wait ....