PHP code example of chadicus / marvel-api-client

1. Go to this page and download the library: Download chadicus/marvel-api-client library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

chadicus / marvel-api-client example snippets




hadicus\Marvel\Api\Client;

$publicApiKey = 'YOUR PUBLIC API KEY';
$privateApiKey = 'YOUR PRIVATE API KEY';

$client = new Client($privateApiKey, $publicApiKey);

$dataWrapper = $client->get('characters', 1009351);

//Text to display for attribution \t{$event->getName()}\n";
}