PHP code example of plinker / files

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

    

plinker / files example snippets

 php
$result = $client->files->list('./', false, 10);
 php
$result = $client->files->put('./path/to/file.txt', 'the file contents');
 php
$result = $client->files->get('./path/to/file.txt');
 text
the file contents
 php
$result = $client->files->delete('./path/to/file.txt');