bhaktaraz/php-waveapp-client 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

bhaktaraz/php-waveapp-client

Composer 安装命令:

composer require bhaktaraz/php-waveapp-client

包简介

PHP client for wave app

README 文档

README

Simple PHP client for WaveApp

The original documentation is available at:

To use WaveApp, you will need to register on the developer portal.

Requirement & Install

  • Open terminal
  • cd /path-to-project
  • and run
composer require bhaktaraz/php-waveapp-client

Queries

  • user
  • countries
  • country
  • businesses
  • business
  • currencies
  • currency
  • accountTypes
  • accountSubTypes

Mutations

  • customerCreate

  • customerPatch

  • customerDelete

  • accountCreate

  • accountPatch

  • accountArchive

  • productCreate

  • productPatch

  • productArchive

  • salesTaxCreate

  • salesTaxPatch

  • salesTaxRateCreate

  • salesTaxArchive

  • moneyTransactionCreate

  • invoiceCreate

  • invoiceDelete

  • invoiceSend

  • invoiceApprove

  • invoiceMarkSent

How to use

Query

$waveapp = new \Bhaktaraz\WaveApp\WaveApp();
$countries = $waveapp->countries();

--- OR ---

$country = $waveapp->country(['code' => 'US']);

Mutation

$waveapp = new \Bhaktaraz\WaveApp\WaveApp();
$customer = [
    "input" => [
        "businessId" => "<REPLACE-THIS-WITH-THE-BUSINESS-ID>",
        "name" => "The Garuda Express",
        "firstName" => "Lokendra",
        "lastName" => "Saud",
        "displayId" => "Lokendra",
        "email" => "lokendra@thegarudaexpress.com",
        "mobile" => "980000000000",
        "phone" => "01-955555",
        "fax" => "",
        "address" => [
            "addressLine1" => "Mahadevsthan",
            "addressLine2" => "Baneshwor",
            "city" => "Kathmandu",
            "postalCode" => "440466",
            "countryCode" => "NP"
        ],
        "tollFree" => "",
        "website" => "",
        "internalNotes" => "",
        "currency" => "NPR",
        "shippingDetails" => [
            "name" => "Lokendra",
            "phone" => "9800000000",
            "instructions" => "Hey",
            "address" => [
                "addressLine1" => "Mahadevsthan",
                "addressLine2" => "Baneshwor",
                "city" => "Kathmandu",
                "postalCode" => "440466",
                "countryCode" => "NP"
            ]
        ]
    ] 
];

$newCustomer = $waveapp->customerCreate($customer, "CustomerCreateInput");

Note: Inspired from subbe/waveapp which is created for laravel apps. For my need I've created this generalized repo and can be used in any PHP applications.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-05-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固