Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wohnparc/moeware-client-php

A PHP client library for the Moeware GraphQL API.
https://github.com/wohnparc/moeware-client-php

composer gaco graphql lamp moeve moeware php php-library wopa

Last synced: 3 months ago
JSON representation

A PHP client library for the Moeware GraphQL API.

Awesome Lists containing this project

README

        

[![library version](https://img.shields.io/packagist/v/wohnparc/moeware-client)](https://packagist.org/packages/wohnparc/moeware-client)
[![php version](https://img.shields.io/packagist/dependency-v/wohnparc/moeware-client/php)](https://www.php.net/releases/index.php)
[![license](https://img.shields.io/packagist/l/wohnparc/moeware-client)](LICENSE)

# 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](https://packagist.org/packages/wohnparc/moeware-client).

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:

```composer
{
...
"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:

```php

$client = new Client("", "", "");

$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](LICENSE) file.
A list of all dependencies and its licenses can be found at [docs/licenses.md](docs/licenses.md).

## Maintainers

- [Marc Binz](https://github.com/marcbinz)