ralph/marvel

Marvel Api For PHP

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Type:php

v0.0.2 2019-03-28 11:11 UTC

This package is auto-updated.

Last update: 2021-11-29 03:04:59 UTC


README

Marvel Composer Package

ralph/marvel ralph/marvel

Latest Stable Version Latest Unstable Version License

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:

Ref: https://developer.marvel.com/documentation/getting_started

Requirement

  1. Guzzlehttp/guzzle
  2. 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