sana/yii2-image-by-url

Расширение для загрузки картинки по URL (jpg, png, gif).

Installs: 11

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0.2 2019-01-16 15:25 UTC

This package is auto-updated.

Last update: 2025-06-17 11:21:20 UTC


README

Расширение для загрузки картинки по URL (jpg, png, gif).

Installation

The preferred way to install this extension is through composer.

Either run

composer require --prefer-dist sana/yii2-image-by-url "*"

or add

"sana/yii2-image-by-url": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?php

namespace app\commands;

use yii\console\Controller;
use sana\image\Loader;

class LoadController extends Controller
{

    public function actionLoad($from, $to)
    {
        $loader = new  Loader();
        $loader->load($from,$to);
    }
}