承接 avayabaniya/compare-microservice-and-vendor 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

avayabaniya/compare-microservice-and-vendor

最新稳定版本:v1.2.1

Composer 安装命令:

composer require avayabaniya/compare-microservice-and-vendor

包简介

Compare status of transactions between microservice database and vendor api

README 文档

README

The package preconfigures the boilerplate code with the feature to check transaction status between vendor through api and microservice through database. Each compared records are saved in recheck_transactions table.

Installation

You can install this package via composer using this command:

composer require avayabaniya/compare-microservice-and-vendor

The package will automatically register itself for laravel projects.

For Lumen projects the package needs to be manually registered by adding the following line in app.php file.

$app->register(\avayabaniya\CompareMicroserviceAndVendor\CompareMicroserviceAndVendorServiceProvider::class);

How to use

Firstly, run the migration to use recheck_transactions table

php artisan migrate

This will create repost_transactions table in your database where each recheck is saved using RecheckTransaction eloquent model.

Next step will be to create required classes, using the following artisan command, to implement the feature of the package.

php artisan make:compare Wallet/Compare/DummyTransaction 

This will create 3 classes

  • DummyTransactionApiCompare class implementing VendorApiStatusContract interface in Wallet/Compare directory which should be used to implement api checks
  • DummyTransactionDbCompare class implementing MicroserviceDbStatusContract interface in Wallet/Compare directory which should be used to implement database checks
  • DummyTransactionCronCompare class in Wallet/Compare/Cron directory which can be used to implement cron task

统计信息

  • 总下载量: 25
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-10-14