PHP code example of taffovelikoff / imagekit-adapter
1. Go to this page and download the library: Download taffovelikoff/imagekit-adapter 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/ */
taffovelikoff / imagekit-adapter example snippets
use ImageKit\ImageKit;
use League\Flysystem\Filesystem;
use TaffoVelikoff\ImageKitAdapter\ImageKitAdapter;
// Client
$client = new ImageKit (
'your_public_key',
'your_private_key',
'your_endpoint_url' // Should look something like this https://ik.imagekit.io/qvkc...
);
// Adapter
$adapter = new ImagekitAdapter($client);
// Filesystem
$fsys = new Filesystem($adapter);
// Check if file exists example
$file = $fsys->fileExists('default-image.jpg');