Minify HTML API with PHP

Minimize HTML from an url with the .Maui APIs in PHP is quick, easy and free.

It is necessary to register at to get the free api key. To run this example, the CURL library must be enabled.


$data = array('apikey' => 'YOUR_API_KEY', 
              'url' => "");

$curl = curl_init("");
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); 

$output = curl_exec($curl);  


echo $output;

Leave a Comment

Your email address will not be published. Required fields are marked *