PHP code example of skyraptor / densitywaves-php
1. Go to this page and download the library: Download skyraptor/densitywaves-php 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/ */
skyraptor / densitywaves-php example snippets
use DensityWaves\Galaxy;
...
$radius = 1000;
$galaxy = new Galaxy($radius, round($radius * 0.25), 0.00015, 1.2, 1.02, 1, 40);
$galaxy->age();
composer