<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Devidw\MarsRoverPhoto\MarsRoverPhoto;
$mars = new MarsRoverPhoto(
apiKey: 'DEMO_KEY',
rover: 'curiosity',
);
$photos = $mars->sol(100)->camera('NAVCAM')->get();
var_dump($photos);
public MarsRoverPhoto::__construct ( string $apiKey , string $rover )
public MarsRoverPhoto::get ( ) : object
public MarsRoverPhoto::sol ( int $sol ) : MarsRoverPhoto
public MarsRoverPhoto::earthDate ( int $earthDate ) : MarsRoverPhoto
public MarsRoverPhoto::camera ( string $camera ) : MarsRoverPhoto
public MarsRoverPhoto::page ( int $page ) : MarsRoverPhoto
For more details on the API see: