PHP code example of astatroth / php-hexgrid

1. Go to this page and download the library: Download astatroth/php-hexgrid 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/ */

    

astatroth / php-hexgrid example snippets

bash
composer 
 php
use Astatroth\HexGrid\Grid;

$grid = new Grid;
print_r($grid->hexagon(0, 0, 3, true));