ralph / marvel
Marvel Api For PHP
v0.0.2
2019-03-28 11:11 UTC
Requires
- guzzlehttp/guzzle: ^6.1
Requires (Dev)
- phpunit/phpunit: ^5.2
This package is auto-updated.
Last update: 2025-04-29 01:00:44 UTC
README
Marvel Composer Package
Introduction
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
Requirement
- Guzzlehttp/guzzle
- Composer
Installation
$ composer require "ralph/marvel:~0.0.2" -vvv
Usage
<?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);
Documentation
For more detail documentation, we can access Maravel's develpoer site,https://developer.marvel.com/docs#!/public/getCreatorCollection_get_0.
License
MIT