{"id":14976254,"url":"https://github.com/amritms/waveapps-client-php","last_synced_at":"2025-10-27T18:30:51.160Z","repository":{"id":54967601,"uuid":"264178668","full_name":"amritms/waveapps-client-php","owner":"amritms","description":"A wrapper to use the WaveApps's graphql api in your laravel SaaS application. This repo can manage webapps account on behalf of third party users.","archived":false,"fork":false,"pushed_at":"2023-03-19T04:09:17.000Z","size":17,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-21T15:58:52.475Z","etag":null,"topics":["graphql-client","laravel-package","php","waveapps"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amritms.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-15T11:41:40.000Z","updated_at":"2025-03-27T01:11:46.000Z","dependencies_parsed_at":"2024-09-18T19:03:08.536Z","dependency_job_id":null,"html_url":"https://github.com/amritms/waveapps-client-php","commit_stats":{"total_commits":4,"total_committers":3,"mean_commits":"1.3333333333333333","dds":0.5,"last_synced_commit":"0ed05dd6c283c4b7010708a1925382a521f0613c"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/amritms/waveapps-client-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amritms%2Fwaveapps-client-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amritms%2Fwaveapps-client-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amritms%2Fwaveapps-client-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amritms%2Fwaveapps-client-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amritms","download_url":"https://codeload.github.com/amritms/waveapps-client-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amritms%2Fwaveapps-client-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281319834,"owners_count":26481071,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-27T02:00:05.855Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["graphql-client","laravel-package","php","waveapps"],"created_at":"2024-09-24T13:53:34.928Z","updated_at":"2025-10-27T18:30:50.855Z","avatar_url":"https://github.com/amritms.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WaveApps Client PHP\n\nA wrapper to use the [WaveApps][wave-apps]'s graphql api in your laravel SaaS application. This repo can manage webapps account on behalf of third party users.\n\n**Note:** If you are looking to use waveapps on behalf of a single user then use [subbe/waveapp][subbe-waveapp]\n\nThe original documentation is available at:\n- [Wave - Developer Portal][wave-documentation-url]\n- [API Reference][wave-api-schema]\n- [API Playground][wave-api-playground]\n\nTo use WaveApps, you will need to [register][wave-create-an-app] on the developer portal.\nAnd create new application and fetch client_id, client_secret\n\n## Requirement \u0026 Install\nOpen you composer.json file and add\n```\n\"amritms/waveapps-client-php\":\"0.1\"\n```\nand go to the location of your composer file in terminal and run\n```\ncomposer update\n\nphp artisan vendor:publish\n```\n## Route\n```route\nRoute::post('webapps/token', 'WebappsController@handleToken');\n```\n\nUpdate your .env file to include\n```\nWAVE_CLIENT_ID=\nWAVE_CLIENT_SECRET=\nWAVE_GRAPHQL_AUTH_URI=https://api.waveapps.com/oauth2/token/\nWAVE_GRAPHQL_URI=https://gql.waveapps.com/graphql/public\n```\n\n\n\n### Queries\n\n- user\n- countries\n- country\n- customers\n- products\n- invoices\n- businesses\n- business\n- currencies\n- currency\n- accountTypes\n- accountSubyypes\n\n### Mutations\n**Customer**\n- customerCreate\n- customerPatch\n- customerDelete\n\n**Account**\n- accountCreate\n- accountPatch\n- accountArchive\n\n**Product**\n- productCreate\n- productPatch\n- productArchive\n\n**Sales**\n- salesTaxCreate\n- salesTaxPatch\n- salesTaxRateCreate\n- salesTaxArchive\n\n**Money Transaction**\n- moneyTransactionCreate\n\n**Invoice**\n- invoiceCreate\n- invoiceDelete\n- invoiceSend\n- invoiceApprove\n- invoiceMarkSent\n\n### How to use\n\n#### Query\n```\n$waveapp = new \\Amritms\\WaveappsClientPhp\\Waveapps();\n$countries = $waveapp-\u003ecountries();\n\n--- OR ---\n\n$country = $waveapp-\u003ecountry(['code' =\u003e 'US']);\n```\n\n#### Mutation\n```\n$waveapp = new \\Amritms\\WaveappsClientPhp\\Waveapps();\n$customer = [\n    \"input\" =\u003e [\n        \"businessId\" =\u003e \"\u003cREPLACE-THIS-WITH-THE-BUSINESS-ID\u003e\",\n        \"name\" =\u003e \"Lucifer Morningstar\",\n        \"firstName\" =\u003e \"Lucifer\",\n        \"lastName\" =\u003e \"Morningstar\",\n        \"displayId\" =\u003e \"Lucifer\",\n        \"email\" =\u003e \"lucifer.morningstar@hell.com\",\n        \"mobile\" =\u003e \"6666666\",\n        \"phone\" =\u003e \"6666666\",\n        \"fax\" =\u003e \"\",\n        \"address\" =\u003e [\n            \"addressLine1\" =\u003e \"666 Diablo Street\",\n            \"addressLine2\" =\u003e \"Hell's Kitchen\",\n            \"city\" =\u003e \"New York\",\n            \"postalCode\" =\u003e \"10018\",\n            \"countryCode\" =\u003e \"US\"\n        ],\n        \"tollFree\" =\u003e \"\",\n        \"website\" =\u003e \"\",\n        \"internalNotes\" =\u003e \"\",\n        \"currency\" =\u003e \"USD\",\n        \"shippingDetails\" =\u003e [\n            \"name\" =\u003e \"Lucifer\",\n            \"phone\" =\u003e \"6666666\",\n            \"instructions\" =\u003e \"pray\",\n            \"address\" =\u003e [\n                \"addressLine1\" =\u003e \"666 Diablo Street\",\n                \"addressLine2\" =\u003e \"Hell's Kitchen\",\n                \"city\" =\u003e \"New York\",\n                \"postalCode\" =\u003e \"10018\",\n                \"countryCode\" =\u003e \"US\"\n            ]\n        ]\n    ]\n];\n\n$newCustomer = $waveapp-\u003ecustomerCreate($customer, \"CustomerCreateInput\");\n```\n\n**Note:** This repo is based on [subbe/waveapp][subbe-waveapp]\n\n[wave-apps]: https://www.waveapps.com/\n[wave-documentation-url]: https://developer.waveapps.com/hc/en-us/categories/360001114072\n[wave-api-schema]: https://developer.waveapps.com/hc/en-us/articles/360019968212-API-Reference\n[wave-api-playground]: https://developer.waveapps.com/hc/en-us/articles/360018937431-API-Playground\n[wave-create-an-app]: https://developer.waveapps.com/hc/en-us/sections/360003012132-Create-an-App\n[subbe-waveapp]:https://github.com/subbe/waveapp\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famritms%2Fwaveapps-client-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famritms%2Fwaveapps-client-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famritms%2Fwaveapps-client-php/lists"}