{"id":18291259,"url":"https://github.com/violinist-dev/danbooru-sdk","last_synced_at":"2025-04-09T07:50:02.101Z","repository":{"id":85682723,"uuid":"146055743","full_name":"violinist-dev/danbooru-sdk","owner":"violinist-dev","description":"Danbooru PHP SDK","archived":false,"fork":false,"pushed_at":"2019-02-17T18:30:09.000Z","size":90,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2025-02-15T02:15:30.786Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"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/violinist-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-25T01:48:36.000Z","updated_at":"2020-06-13T15:35:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"b20cb7de-dd9f-4799-9f97-0afadcd7cea7","html_url":"https://github.com/violinist-dev/danbooru-sdk","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/violinist-dev%2Fdanbooru-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/violinist-dev%2Fdanbooru-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/violinist-dev%2Fdanbooru-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/violinist-dev%2Fdanbooru-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/violinist-dev","download_url":"https://codeload.github.com/violinist-dev/danbooru-sdk/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247999840,"owners_count":21031044,"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":[],"created_at":"2024-11-05T14:13:44.218Z","updated_at":"2025-04-09T07:50:02.084Z","avatar_url":"https://github.com/violinist-dev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Danbooru PHP SDK\n\n\n[![Build status](https://api.travis-ci.org/desu-project/danbooru-sdk.svg)](https://travis-ci.org/desu-project/danbooru-sdk)\n[![Latest Stable Version](https://poser.pugx.org/desu-project/danbooru-sdk/version)](https://packagist.org/packages/desu-project/danbooru-sdk)\n[![Monthly Downloads](https://poser.pugx.org/desu-project/danbooru-sdk/d/monthly)](https://packagist.org/packages/desu-project/danbooru-sdk)\n\nIt's collection of entities, value objects and simple client to work with [Danbooru API](https://danbooru.donmai.us/wiki_pages/43568) in read-only mode. This SDK implements [desu-project/chanbooru-interface](https://github.com/desu-project/chanbooru-interface).\n\n## Installation\n\n````\ncomposer require desu-project/danbooru-sdk\n````\n\n## Getting started\n\n````php\nrequire 'vendor/autoload.php';\n\nuse DesuProject\\DanbooruSdk\\Client;\nuse DesuProject\\DanbooruSdk\\Post;\n\n$client = new Client(\n    'abc', // api key\n    false // false = use Danbooru instead of Safebooru\n);\n\n$posts = Post::search(\n    $client, // Client object\n    ['animal_ears'], // array of tags\n    1, // page number\n    30 // posts per page\n);\n\nforeach ($posts as $post) {\n    echo $post-\u003egetId() . '\u003cbr\u003e' . \"\\n\";\n}\n````\n\nFor details see sources. They are well documented.\n\n## License\n\nDanbooru SDK is licensed under MIT license. For further details see [LICENSE](LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviolinist-dev%2Fdanbooru-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviolinist-dev%2Fdanbooru-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviolinist-dev%2Fdanbooru-sdk/lists"}