1. Go to this page and download the library: Download grzgajda/comicvine-api 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/ */
/*
* Argument for setFieldList is array containing
* only names of fields which we want.
*/
$response->setFieldList(['api_detail_url', 'aliases'])
/*
* Set filters to find resource you want. It needs key => value
* schema and allows for many filters.
*/
->setFilters(['name' => 'Batman', 'aliases' => 'Fatherless'])
/*
* Allows to sort response. Key is name of field, value is asc or desc
* only.
*/
->setSort(['date_added' => 'asc'])
/*
* Set how much elements do you want to get. Maximum limit is 100
* (API restrictions).
*/
->setLimit(100)
/*
* From which position we would want to start getting elements.
*/
->setOffset(50)
/*
* After setting request query (set methods), times to get
* response. Get response return XML object or JSON string.
*/
->getResponse()
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.