makklays/yii2-upload-remote-photos

Upload photos from remote host and save it on system of file (site) for the Yii2 framework

1.0 2017-12-20 22:57 UTC

This package is not auto-updated.

Last update: 2025-06-14 18:46:40 UTC


README

[en] Install with composer [ru] Установка с composer
composer require makklays/yii2-upload-remote-photos

INFORMATION / ИНФОРМАЦИЯ

[en] Upload photos (jpg, png, gif) from remote host and save it on system of file (your site) for the Yii2 framework [ru] Загрузка фотографий (jpg, png, gif) с удаленного хоста и сохранение их на Файловой системе

USE / ИСПОЛЬЗОВАНИЕ

use makklays\uploadRemotePhotos;
$remoteUrl = 'http://your_site_name/dir_with_photos'; $pathDir = Yii::$app->basePath . '/web/new_dir_with_photos';
$up = new upload-remote-photos\uploadRemotePhotos('up'); $up->upload($remoteUrl, $pathDir);