Marvel Composer Package
Welcome to the world's greatest marvel comics API!
The Marvel Comics API is a tool to help developers everywhere create amazing, uncanny and incredible web sites and applications using data from the 70-plus years of the Marvel age of comics.
Ready to get started? Great!
Here's the short version of what you need to do:
- Sign up: Get an API key
- Be a good API citizen: read, understand, and abide by the terms of use for the Marvel Comics API
- Link back: observe the attribution and linking guidelines when displaying data from the API
- Build cool stuff: use Ralph/Marvel Composer Package
Ref: https://developer.marvel.com/documentation/getting_started
- Guzzlehttp/guzzle
- Composer
$ composer require "ralph/marvel:~0.0.2" -vvv<?php
use Ralph\Marvel;
$config = [
'publicKey' => '***',
'privateKey' => '*******',
];
$marvel = new Marvel($config);
$options = [
'limit' => 10,
];
// Fetches lists of comic characters with optional filters.
$characters = $marvel->characters($options);
// Fetches lists of comics with optional filters.
$comics = $marvel->comics($options);
// Fetches lists of comic creators with optional filters.
$creators = $marvel->creators($options);
// Fetches lists of events with optional filters.
$events = $marvel->events($options);
// Fetches lists of comic series with optional filters.
$series = $marvel->series($options);
// Fetches lists of comic stories with optional filters.
$stories = $marvel->stories($options);For more detail documentation, we can access Maravel's develpoer site,https://developer.marvel.com/docs#!/public/getCreatorCollection_get_0.
MIT