PHP code example of servocoder / richfilemanager-php

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

    

servocoder / richfilemanager-php example snippets


$app = new \RFM\Application();

// local filesystem storage
$local = new \RFM\Repository\Local\Storage();
$app->setStorage($local);

// AWS S3 storage instance
$s3 = new \RFM\Repository\S3\Storage();
$app->setStorage($s3);

// local filesystem API
$app->api = new RFM\Api\LocalApi();

// AWS S3 API
$app->api = new RFM\Api\AwsS3Api();

$app->run();
json
{
  "vocoder/richfilemanager-php": "*",
    "aws/aws-sdk-php": "^3.18.0"
  }
}