PHP code example of keven / flysystem-concatenate

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

    

keven / flysystem-concatenate example snippets




use Keven\Flysystem\Concatenate\Concatenate;

$filesystem->addPlugin(new Concatenate);
$filesystem->write('/file1', 'file1');
$filesystem->write('/file2', 'file2');
$filesystem->concatenate('/file3', '/file1', '/file2');

echo $this->filesystem->read('/file3'); // file1file2



use Keven\Flysystem\Concatenate\Append;

$filesystem->addPlugin(new Append);
$this->filesystem->write('/file1', 'file1');
$this->filesystem->append('/file1', 'more');

echo $this->filesystem->read('/file1'); // file1more