Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/wohnparc/moeware-client-php
- Owner: wohnparc
- License: mit
- Created: 2022-10-24T16:03:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-13T14:06:12.000Z (about 1 year ago)
- Last Synced: 2023-12-13T15:26:59.834Z (about 1 year ago)
- Topics: composer, gaco, graphql, lamp, moeve, moeware, php, php-library, wopa
- Language: PHP
- Homepage:
- Size: 127 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)