https://github.com/loevgaard/dandomain-api
This is a PHP wrapper for the Dandomain API
https://github.com/loevgaard/dandomain-api
dandomain library php php-library php7
Last synced: about 1 year ago
JSON representation
This is a PHP wrapper for the Dandomain API
- Host: GitHub
- URL: https://github.com/loevgaard/dandomain-api
- Owner: loevgaard
- License: mit
- Created: 2014-10-26T19:00:04.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2021-01-06T12:03:11.000Z (about 5 years ago)
- Last Synced: 2025-02-28T13:18:32.364Z (about 1 year ago)
- Topics: dandomain, library, php, php-library, php7
- Language: PHP
- Homepage:
- Size: 184 KB
- Stars: 5
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Dandomain API PHP Wrapper
[![Latest Version on Packagist][ico-version]][link-packagist]
[![Software License][ico-license]](LICENSE.md)
[![Build Status][ico-travis]][link-travis]
[![Coverage Status][ico-scrutinizer]][link-scrutinizer]
[![Quality Score][ico-code-quality]][link-code-quality]
This is a PHP wrapper for the [Dandomain](http://www.dandomain.dk) API. Internally it uses [Guzzle](http://docs.guzzlephp.org/) to send requests.
## Installation
```bash
composer require loevgaard/dandomain-api
```
## Usage
```php
productData->countByModifiedInterval($dateStart, $dateEnd);
$pageSize = 100;
$pages = ceil($modifiedProductCount / $pageSize);
for($page = 1; $page <= $pages; $page++) {
$products = $api->productData->getDataProductsInModifiedInterval($dateStart, $dateEnd, $page, $pageSize);
}
```
[ico-version]: https://img.shields.io/packagist/v/loevgaard/dandomain-api.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
[ico-travis]: https://img.shields.io/travis/loevgaard/dandomain-api/master.svg?style=flat-square
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/loevgaard/dandomain-api.svg?style=flat-square
[ico-code-quality]: https://img.shields.io/scrutinizer/g/loevgaard/dandomain-api.svg?style=flat-square
[link-packagist]: https://packagist.org/packages/loevgaard/dandomain-api
[link-travis]: https://travis-ci.org/loevgaard/dandomain-api
[link-scrutinizer]: https://scrutinizer-ci.com/g/loevgaard/dandomain-api/code-structure
[link-code-quality]: https://scrutinizer-ci.com/g/loevgaard/dandomain-api