Skip to content

petun/mars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mars

PHP Challenge

Installation

git clone https://github.com/petun/mars.git
cd mars
composer update

After this, run index.php from you web browser.

Test library from command line by command:

cd mars
php console.php

Demo

You can test program from this page

API

Simple usage:

require_once('vendor/autoload.php');

use Rover\RoverApp;

try {
		$app = new RoverApp($_POST['command']);
		$result =  $app->processBatchCommand();

		echo '<pre style="font-weight: bold; font-size: 14px;">';
		echo $result;
		echo '</pre>';

	} catch (Exception $exc) {
		echo '<p style="color: red;">'.$exc->getMessage().'</p>';
	}

Testing

For unit testing just run command from root directory of the project:

vendor/bin/phpunit test\

Test coverage is 100% now

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages