christophrumpel/marvel-superhero-api

This is a PHP package for working with the Marvel developer API.

0.0.4 2015-05-25 19:32 UTC

This package is auto-updated.

Last update: 2024-03-10 22:30:33 UTC


README

Latest Version Software License

Marvel Superhero API

This is a helper package for working with the Marvel developer API.

Examples

// Get an Marvel account and your keys here https://developer.marvel.com/
$publicKey = "your_public_key";
$privateKey = "your_private_key";

$api = new MarvelUniverse\SuperheroApi($publicKey, $privateKey);

// Get all characters
$characters = $api->characters()->getAll(['nameStartsWith' => 'Y']);

// Get 3-D Man
$threedman = $api->characters()->getById(1011334);

// Get comics from 3-D Man
$comics = $api->characters()->getComics(1011334, ['format' => 'comic']);

// Get events from 3-D Man
$events = $api->characters()->getEvents(1011334);

// Get series from 3-D Man
$series = $api->characters()->getSeries(1011334);

// Get stories from 3-D Man
$stories = $api->characters()->getStories(1011334);

// For more examples checkout the example.php file

Covered

  • All character calls
  • All comic calls

Roadmap

More to come:

  • Creators calls
  • Events calls
  • Series calls
  • Stories calls