wohnparc / moeware-client
The PHP client library for the Moeware GraphQL API
v1.3.6
2024-09-16 13:48 UTC
Requires
- php: >=8.0
- softonic/graphql-client: ^3.0.0
Requires (Dev)
- comcast/php-legal-licenses: ^1.3.0
- dominikb/composer-license-checker: ^2.6.0
- friendsofphp/php-cs-fixer: ^3.64.0
- pestphp/pest: ^v1.23.1
- phpstan/phpstan: ^1.12.0
- phpunit/phpunit: ^9.6.20
- dev-main
- v1.3.6
- v1.3.5
- v1.3.4
- v1.3.3
- v1.3.2
- v1.3.1
- v1.3.0
- v1.2.0
- v1.1.0
- v1.0.0
- v0.2.0
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- dev-renovate/php-8.x
- dev-renovate/major-phpstan-packages
- dev-renovate/comcast-php-legal-licenses-2.x
- dev-renovate/phpunit-phpunit-9.x-lockfile
- dev-add-shop-order-inf-endpoint
- dev-add-price-sync-disabled
- dev-renovate/pestphp-pest-3.x
- dev-renovate/phpstan-packages
- dev-add-article-data
- dev-api-adoptions
- dev-add-test-setup
This package is auto-updated.
Last update: 2024-11-20 14:40:12 UTC
README
moeware-client-php
This repository holds the official PHP client library for the Moeware GraphQL API.
Getting started
Install
The library is available via packagist.
You can install it by simply running the following command in your project:
composer require wohnparc/moeware-client
During development, this library can be added to your project by directly referencing this repository:
{
...
"repositories": [
{
"type": "vcs",
"url": "https://github.com/wohnparc/moeware-client-php.git"
}
],
"minimum-stability": "dev",
"require": {
...
"wohnparc/moeware-client": "dev-main"
}
}
Usage
A simple example:
$client = new Client("<endpoint>", "<api_key>", "<api_secret>"); $date = new DateTime("now - 1 day"); $result = $client->queryUpdatedArticleAndSetRefs($date); if ($result->hasErrors()) { // handle errors appropriately } $result->getArticleRefs(); $result->getSetRefs();
License
This project is licensed under the terms of the MIT license.
For further details, please take a look at the LICENSE file. A list of all dependencies and its licenses can be found at docs/licenses.md.