PHP code example of homeful / imagekit

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

    

homeful / imagekit example snippets


return [
    "apiKey" => env("IMAGEKIT_APIKEY"),
    "defaultFolderPath" => env("IMAGEKIT_DEFAULT_PATH","/images")
];

$paymate = new Homeful\Imagekit();

$jsonInput = [{
    "imageUrl" => "", //alpha-numberic
    "fileName" => "",//alpha-numberic
    "folder" => "" //alpha-numberic
}]
$response = $paymate->payment_cashier($jsonInput); //return URL
bash
php artisan vendor:publish --tag="imagekit-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="imagekit-config"
bash
php artisan vendor:publish --tag="imagekit-views"