PHP code example of r3k4 / ck-storage

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

    

r3k4 / ck-storage example snippets


'providers' => [
	....
	
	Reka\S3\CloudKilatServiceProvider::class,
]

'aliases' => [
	....
	
	'KilatStorage' => Reka\S3\CloudKilatFacade::class,
]

'secretKey' => 'isi secretKey api akun anda di sini'
'accessKey' => 'isi accessKey api akun anda di sini'
'bucket' => 'isi bucket di sini'
'endpoint' => 'isi dgn kilatstorage.com'
'custom_domain' => 'boleh dikosongkan'


$data = KilatStorage::Files()->getAllFiles();

$data = KilatStorage::Files()->deleteObject($uri);

$data = KilatStorage::Files()->getName($uri);

php artisan vendor:publish