{"id":16171242,"url":"https://github.com/loevgaard/dandomain-api","last_synced_at":"2025-03-19T00:30:38.055Z","repository":{"id":22448244,"uuid":"25786627","full_name":"loevgaard/dandomain-api","owner":"loevgaard","description":"This is a PHP wrapper for the Dandomain API","archived":false,"fork":false,"pushed_at":"2021-01-06T12:03:11.000Z","size":188,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T13:18:32.364Z","etag":null,"topics":["dandomain","library","php","php-library","php7"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/loevgaard.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-26T19:00:04.000Z","updated_at":"2022-12-09T03:05:15.000Z","dependencies_parsed_at":"2022-08-20T14:00:13.064Z","dependency_job_id":null,"html_url":"https://github.com/loevgaard/dandomain-api","commit_stats":null,"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loevgaard%2Fdandomain-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loevgaard%2Fdandomain-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loevgaard%2Fdandomain-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loevgaard%2Fdandomain-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loevgaard","download_url":"https://codeload.github.com/loevgaard/dandomain-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243955755,"owners_count":20374373,"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","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":["dandomain","library","php","php-library","php7"],"created_at":"2024-10-10T03:21:17.391Z","updated_at":"2025-03-19T00:30:37.809Z","avatar_url":"https://github.com/loevgaard.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dandomain API PHP Wrapper\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Software License][ico-license]](LICENSE.md)\n[![Build Status][ico-travis]][link-travis]\n[![Coverage Status][ico-scrutinizer]][link-scrutinizer]\n[![Quality Score][ico-code-quality]][link-code-quality]\n\nThis is a PHP wrapper for the [Dandomain](http://www.dandomain.dk) API. Internally it uses [Guzzle](http://docs.guzzlephp.org/) to send requests.\n\n## Installation\n\n```bash\ncomposer require loevgaard/dandomain-api \n```\n\n## Usage\n\n```php\n\u003c?php\nuse Loevgaard\\Dandomain\\Api\\Api;\n\n$api = new Api('https://www.your-shop.dk', 'insert api key');\n\n// Get modified products\n$dateStart = \\DateTime::createFromFormat('Y-m-d', '2018-01-01');\n$dateEnd = new \\DateTime();\n\n$modifiedProductCount = $api-\u003eproductData-\u003ecountByModifiedInterval($dateStart, $dateEnd);\n$pageSize = 100;\n$pages = ceil($modifiedProductCount / $pageSize);\n\nfor($page = 1; $page \u003c= $pages; $page++) {\n    $products = $api-\u003eproductData-\u003egetDataProductsInModifiedInterval($dateStart, $dateEnd, $page, $pageSize);\n}\n```\n\n[ico-version]: https://img.shields.io/packagist/v/loevgaard/dandomain-api.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-travis]: https://img.shields.io/travis/loevgaard/dandomain-api/master.svg?style=flat-square\n[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/loevgaard/dandomain-api.svg?style=flat-square\n[ico-code-quality]: https://img.shields.io/scrutinizer/g/loevgaard/dandomain-api.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/loevgaard/dandomain-api\n[link-travis]: https://travis-ci.org/loevgaard/dandomain-api\n[link-scrutinizer]: https://scrutinizer-ci.com/g/loevgaard/dandomain-api/code-structure\n[link-code-quality]: https://scrutinizer-ci.com/g/loevgaard/dandomain-api","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floevgaard%2Fdandomain-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floevgaard%2Fdandomain-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floevgaard%2Fdandomain-api/lists"}