PHPackages                             amritms/waveapps-client-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. amritms/waveapps-client-php

ActiveLibrary[API Development](/categories/api)

amritms/waveapps-client-php
===========================

Laravel integration for Saas application to consume Wave's API which is built using GraphQL

0.3.1(3y ago)41.6k↓100%11MITPHP

Since May 29Pushed 3y ago2 watchersCompare

[ Source](https://github.com/amritms/waveapps-client-php)[ Packagist](https://packagist.org/packages/amritms/waveapps-client-php)[ RSS](/packages/amritms-waveapps-client-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (9)Used By (1)

WaveApps Client PHP
===================

[](#waveapps-client-php)

A wrapper to use the [WaveApps](https://www.waveapps.com/)'s graphql api in your laravel SaaS application. This repo can manage webapps account on behalf of third party users.

**Note:** If you are looking to use waveapps on behalf of a single user then use [subbe/waveapp](https://github.com/subbe/waveapp)

The original documentation is available at:

- [Wave - Developer Portal](https://developer.waveapps.com/hc/en-us/categories/360001114072)
- [API Reference](https://developer.waveapps.com/hc/en-us/articles/360019968212-API-Reference)
- [API Playground](https://developer.waveapps.com/hc/en-us/articles/360018937431-API-Playground)

To use WaveApps, you will need to [register](https://developer.waveapps.com/hc/en-us/sections/360003012132-Create-an-App) on the developer portal. And create new application and fetch client\_id, client\_secret

Requirement &amp; Install
-------------------------

[](#requirement--install)

Open you composer.json file and add

```
"amritms/waveapps-client-php":"0.1"

```

and go to the location of your composer file in terminal and run

```
composer update

php artisan vendor:publish

```

Route
-----

[](#route)

```
Route::post('webapps/token', 'WebappsController@handleToken');

```

Update your .env file to include

```
WAVE_CLIENT_ID=
WAVE_CLIENT_SECRET=
WAVE_GRAPHQL_AUTH_URI=https://api.waveapps.com/oauth2/token/
WAVE_GRAPHQL_URI=https://gql.waveapps.com/graphql/public

```

### Queries

[](#queries)

- user
- countries
- country
- customers
- products
- invoices
- businesses
- business
- currencies
- currency
- accountTypes
- accountSubyypes

### Mutations

[](#mutations)

**Customer**

- customerCreate
- customerPatch
- customerDelete

**Account**

- accountCreate
- accountPatch
- accountArchive

**Product**

- productCreate
- productPatch
- productArchive

**Sales**

- salesTaxCreate
- salesTaxPatch
- salesTaxRateCreate
- salesTaxArchive

**Money Transaction**

- moneyTransactionCreate

**Invoice**

- invoiceCreate
- invoiceDelete
- invoiceSend
- invoiceApprove
- invoiceMarkSent

### How to use

[](#how-to-use)

#### Query

[](#query)

```
$waveapp = new \Amritms\WaveappsClientPhp\Waveapps();
$countries = $waveapp->countries();

--- OR ---

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

```

#### Mutation

[](#mutation)

```
$waveapp = new \Amritms\WaveappsClientPhp\Waveapps();
$customer = [
    "input" => [
        "businessId" => "",
        "name" => "Lucifer Morningstar",
        "firstName" => "Lucifer",
        "lastName" => "Morningstar",
        "displayId" => "Lucifer",
        "email" => "lucifer.morningstar@hell.com",
        "mobile" => "6666666",
        "phone" => "6666666",
        "fax" => "",
        "address" => [
            "addressLine1" => "666 Diablo Street",
            "addressLine2" => "Hell's Kitchen",
            "city" => "New York",
            "postalCode" => "10018",
            "countryCode" => "US"
        ],
        "tollFree" => "",
        "website" => "",
        "internalNotes" => "",
        "currency" => "USD",
        "shippingDetails" => [
            "name" => "Lucifer",
            "phone" => "6666666",
            "instructions" => "pray",
            "address" => [
                "addressLine1" => "666 Diablo Street",
                "addressLine2" => "Hell's Kitchen",
                "city" => "New York",
                "postalCode" => "10018",
                "countryCode" => "US"
            ]
        ]
    ]
];

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

```

**Note:** This repo is based on [subbe/waveapp](https://github.com/subbe/waveapp)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~339 days

Total

4

Last Release

1162d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a24cb6627cca5816f92b3662e0a6e4c37b17eadb053982cd5e46f92e3399c099?d=identicon)[amritms](/maintainers/amritms)

---

Top Contributors

[![amritms](https://avatars.githubusercontent.com/u/1658188?v=4)](https://github.com/amritms "amritms (3 commits)")[![samyakrt](https://avatars.githubusercontent.com/u/20441637?v=4)](https://github.com/samyakrt "samyakrt (2 commits)")

---

Tags

graphql-clientlaravel-packagephpwaveapps

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/amritms-waveapps-client-php/health.svg)

```
[![Health](https://phpackages.com/badges/amritms-waveapps-client-php/health.svg)](https://phpackages.com/packages/amritms-waveapps-client-php)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
