makklays / yii2-upload-remote-photos
Upload photos from remote host and save it on system of file (site) for the Yii2 framework
Package info
github.com/makklays/yii2-upload-remote-photos
Type:yii2-extension
pkg:composer/makklays/yii2-upload-remote-photos
1.0
2017-12-20 22:57 UTC
Requires
- php: >=5.3.0
- yiisoft/yii2: ~2.0.0
Requires (Dev)
- phpunit/phpunit: >=4.0
This package is not auto-updated.
Last update: 2026-03-07 22:17:03 UTC
README
[en] Install with composer [ru] Установка с composercomposer 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);