PHP code example of onix-systems-php / hyperf-file-upload

1. Go to this page and download the library: Download onix-systems-php/hyperf-file-upload 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/ */

    

onix-systems-php / hyperf-file-upload example snippets


use FileRelations;

public $fileRelations = [
    'avatar' => [
        'limit' => 1,
        ' => [
            '150x150' => ['fit' => [150, 150]],
            '250x250' => ['fit' => [250, 250]],
        ],
    ],
    'documents' => [
        'limit' => null,
        '
shell script
composer 
shell script
php bin/hyperf.php vendor:publish onix-systems-php/hyperf-file-upload