MakeImageGrid.php

<?php

$image_urls = json_decode(file_get_contents(__DIR__.'/ForYourGardenImages.json'), true);


$content = '';
foreach ($image_urls as $index => $info){

    $content .= '<img src="'.$info['url'].'" />';

}



$template = file_get_contents(__DIR__.'/Template.html');
$html = str_replace('@CONTENT', $content, $template);
file_put_contents(__DIR__.'/ForYourGarden.html', $html);