{"id":19406267,"url":"https://github.com/chadicus/marvel-api-client","last_synced_at":"2025-04-24T09:31:03.239Z","repository":{"id":13746143,"uuid":"16440560","full_name":"chadicus/marvel-api-client","owner":"chadicus","description":"A PHP Client for use with the Marvel API","archived":false,"fork":false,"pushed_at":"2023-04-19T18:37:21.000Z","size":2545,"stargazers_count":18,"open_issues_count":5,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-03T02:12:08.385Z","etag":null,"topics":[],"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/chadicus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-01T19:14:44.000Z","updated_at":"2022-04-06T02:44:56.000Z","dependencies_parsed_at":"2022-08-18T04:45:09.378Z","dependency_job_id":null,"html_url":"https://github.com/chadicus/marvel-api-client","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chadicus%2Fmarvel-api-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chadicus%2Fmarvel-api-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chadicus%2Fmarvel-api-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chadicus%2Fmarvel-api-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chadicus","download_url":"https://codeload.github.com/chadicus/marvel-api-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250600622,"owners_count":21456996,"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-10T11:41:48.619Z","updated_at":"2025-04-24T09:31:02.941Z","avatar_url":"https://github.com/chadicus.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Marvel API Client\n[![Build Status](https://travis-ci.org/chadicus/marvel-api-client.svg?branch=v3.x)](https://travis-ci.org/chadicus/marvel-api-client)\n[![Code Quality](https://scrutinizer-ci.com/g/chadicus/marvel-api-client/badges/quality-score.png?b=v3.x)](https://scrutinizer-ci.com/g/chadicus/marvel-api-client/?branch=v3.x)\n[![Code Coverage](https://coveralls.io/repos/github/chadicus/marvel-api-client/badge.svg?branch=v3.x)](https://coveralls.io/github/chadicus/marvel-api-client?branch=v3.x)\n\n[![Latest Stable Version](https://poser.pugx.org/chadicus/marvel-api-client/v/stable)](https://packagist.org/packages/chadicus/marvel-api-client)\n[![Latest Unstable Version](https://poser.pugx.org/chadicus/marvel-api-client/v/unstable)](https://packagist.org/packages/chadicus/marvel-api-client)\n[![License](https://poser.pugx.org/chadicus/marvel-api-client/license)](https://packagist.org/packages/chadicus/marvel-api-client)\n\n[![Total Downloads](https://poser.pugx.org/chadicus/marvel-api-client/downloads)](https://packagist.org/packages/chadicus/marvel-api-client)\n[![Daily Downloads](https://poser.pugx.org/chadicus/marvel-api-client/d/daily)](https://packagist.org/packages/chadicus/marvel-api-client)\n[![Monthly Downloads](https://poser.pugx.org/chadicus/marvel-api-client/d/monthly)](https://packagist.org/packages/chadicus/marvel-api-client)\n\nA PHP client for use with the [Marvel API](http://developer.marvel.com/docs).\n\n## Requirements\n\nThe Marvel API Client requires PHP 7.0 (or later).\n\n## Composer\nTo add the library as a local, per-project dependency use [Composer](http://getcomposer.org)! Simply add a dependency on `chadicus/marvel-api-client` to your project's `composer.json` file such as:\n\n```sh\ncomposer require chadicus/marvel-api-client\n```\n## Examples\nExamples of use can be found [here](/examples)\n\n### Basic Usage\n\n```php\n\u003c?php\n\nrequire_once __DIR__ . '/vendor/autoload.php';\n\nuse Chadicus\\Marvel\\Api\\Client;\n\n$publicApiKey = 'YOUR PUBLIC API KEY';\n$privateApiKey = 'YOUR PRIVATE API KEY';\n\n$client = new Client($privateApiKey, $publicApiKey);\n\n$dataWrapper = $client-\u003eget('characters', 1009351);\n\n//Text to display for attribution requirements\n$attributionText = $dataWrapper-\u003egetAttributionText();\n\n$character = $dataWrapper-\u003egetData()-\u003egetResults()[0];\n\necho \"{$character-\u003egetName()}\\n\";\necho \"{$character-\u003egetDescription()}\\n\";\n\nforeach ($character-\u003egetEvents()-\u003egetItems() as $event) {\n    echo \"\\t{$event-\u003egetName()}\\n\";\n}\n\n```\n\n## Community\n[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/marvel-api-client/Lobby#)\n\n## Contact\nDevelopers may be contacted at:\n * [Pull Requests](https://github.com/chadicus/marvel-api-client/pulls)\n * [Issues](https://github.com/chadicus/marvel-api-client/issues)\n\n## Project Build\nWith a checkout of the code get [Composer](http://getcomposer.org) in your PATH and run:\n\n```sh\ncomposer install\n./vendor/bin/phpunit\n```\n\n## With Great Power Comes Great Responsibility.\nWhen using the `marvel-api-client` you must follow [Marvel's Rules of Attribution](http://developer.marvel.com/documentation/attribution)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchadicus%2Fmarvel-api-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchadicus%2Fmarvel-api-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchadicus%2Fmarvel-api-client/lists"}