PHP code example of mauris / geopattern

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

    

mauris / geopattern example snippets


GeoPattern::setString('Make me a SVGandiwch now.');
GeoPattern::setBaseColor('#FFCC00');

$response = Response::make(GeoPattern::toSVG(), 200);
$response->header(
    'content-type',
    'image/svg+xml'
);
return $response;