Skip to content

Commit

Permalink
[FEATURE] Add a basic demo
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelbrackets committed Nov 12, 2018
1 parent fce5502 commit 4b254a5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/demo.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

require_once '../Classes/RalColorChart.php';

$colorChart = new \Pixelbrackets\RalColorChart\RalColorChart();

echo 'Ordered List' . PHP_EOL;
$colors = $colorChart->getList();
foreach ($colors as $color) {
echo 'Color: ' . $color['number'] . ' Index: ' . $color['rangeindex'] . ' Name: ' . $color['nameEnglish'] . PHP_EOL;
}

0 comments on commit 4b254a5

Please sign in to comment.