Download the PHP package jeffgreco13/laravel-wave without Composer
On this page you can find all versions of the php package jeffgreco13/laravel-wave. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jeffgreco13/laravel-wave
More information about jeffgreco13/laravel-wave
Files in jeffgreco13/laravel-wave
Package laravel-wave
Short Description A wrapper to use the Wave GraphQL API in your Laravel apps.
License MIT
Informations about the package laravel-wave
Laravel Wave
A wrapper to use the Wave's graphql api in your laravel apps. This package was forked from subbe/waveapp and adds some QOL improvements for Laravel devs.
Wave API documentation can be located at:
Application Setup
To use Laravel Wave, you will need to create an app on the developer portal.
After you have created a new app, click in to edit its settings. Create a new Full Access token and copy this to a save place. You will need this in your .env
OAuth flow is not supported by this package. Consider using the Socialite Wave Provider then pass the Access Token to the Wave class at runtime.
Installation
Require the package using composer:
Update your .env file to include:
If you do not know the ID for your business, you can use the following tinker command:
Usage
Currency
A simple way to download Wave's currencies and cache them for use in your app:
First run the artisan command. This downloads the static currencies to a json file and saves them in your storage path:
You may now use the Currency class like so:
All Queries
- user
- countries
- country
- businesses
- business
- currencies
- currency
- accountTypes
- accountSubtypes
- customerExists
- customers
- products
- taxes
All Mutations
- customerCreate
- customerPatch
-
customerDelete
- accountCreate
- accountPatch
-
accountArchive
- productCreate
- productPatch
-
productArchive
- salesTaxCreate
- salesTaxPatch
- salesTaxArchive
-
salesTaxRateCreate
-
moneyTransactionCreate
- invoiceCreate
- invoiceClone
- invoiceDelete
- invoiceSend
- invoiceApprove
- invoiceMarkSent
Usage
Query
or, with parameters...
Pagination
Queries like businesses
and customers
may require pagination. You can easily build your own loop and increment the 'page' input, or you can use this shortcut:
Mutation
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
MIT