PHP code example of metawesome / imgfromurl

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

    

metawesome / imgfromurl example snippets


use Metawesome\ImgFromUrl\Img;

$img = new Img();
$img->fromUrl('https://www.google.com');
$img->saveAs(storage_path('google.jpg'));