PHP code example of denis-kisel / smart-image

1. Go to this page and download the library: Download denis-kisel/smart-image 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/ */

    

denis-kisel / smart-image example snippets



//Will get storage/app/public/image.jpg
//And will put in the storage/app/public/image_cache/image-200x200.jpg
//Return link on cache image: site.com/storage/image_cache/image-200x200.jpg
SmartImage::cache('image.jpg', 200, 200);