PHPackages                             greeflas/php-image-downloader - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. greeflas/php-image-downloader

ActiveLibrary[HTTP &amp; Networking](/categories/http)

greeflas/php-image-downloader
=============================

Component for downloading images by URL

429.6k↓85.2%4PHP

Since Sep 17Pushed 7y ago1 watchersCompare

[ Source](https://github.com/greeflas/php-image-downloader)[ Packagist](https://packagist.org/packages/greeflas/php-image-downloader)[ RSS](/packages/greeflas-php-image-downloader/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Component for downloading images by URL
=======================================

[](#component-for-downloading-images-by-url)

This is component for downloading images by URL from another servers. This component uses [cURL](http://php.net/manual/en/book.curl.php) PHP library.

[![Total Downloads](https://camo.githubusercontent.com/41c598fbe18a98fe8765d82fec6dd8c015c24a80b3eff48b63176424ec5447dd/68747470733a2f2f706f7365722e707567782e6f72672f67726565666c61732f7068702d696d6167652d646f776e6c6f616465722f646f776e6c6f616473)](https://packagist.org/packages/greeflas/php-image-downloader)[![Latest Stable Version](https://camo.githubusercontent.com/a7519a419543b85634166a5b324a3ecb1274b2b157857b36250cb89dc4e4150b/68747470733a2f2f706f7365722e707567782e6f72672f67726565666c61732f7068702d696d6167652d646f776e6c6f616465722f762f737461626c65)](https://packagist.org/packages/greeflas/php-image-downloader)[![Latest Unstable Version](https://camo.githubusercontent.com/a71237073775b2e25574923b56543e226c947c7a1f8eaa55a755985f601cd318/68747470733a2f2f706f7365722e707567782e6f72672f67726565666c61732f7068702d696d6167652d646f776e6c6f616465722f762f756e737461626c65)](https://packagist.org/packages/greeflas/php-image-downloader)[![License](https://camo.githubusercontent.com/4c14ad50de321e3398cff2315e9f4a719fafdc9648093b057cc05f423e34be04/68747470733a2f2f706f7365722e707567782e6f72672f67726565666c61732f7068702d696d6167652d646f776e6c6f616465722f6c6963656e7365)](https://packagist.org/packages/greeflas/php-image-downloader)

Installation
------------

[](#installation)

The preferred way to install the component is through [composer](https://getcomposer.org/download/).

Either run

```
composer require greeflas/php-image-downloader

```

or add

```
"greeflas/php-image-downloader": "dev-master"
```

to the require section of your composer.json.

Using
-----

[](#using)

Create component instance

```
$downloader = new \greeflas\tools\ImageDownloader([
    'class' => \greeflas\tools\validators\ImageValidator::class
]);
```

in array you should specify the validator class. It used for validation of downloaded files. If you don't want run validation, you can use a `\greeflas\tools\validators\FakeValidator::class`.

Then you should call method for downloading

```
$downloader->download($url, $imagesRoot, $fileName);
```

this method takes as agruments: URL to image, path to catalog where file will be saved and name for downloaded file.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9c7243572d974ba9ce049b0a67fd95cf547fd62ea531784d2dfbcc1fbee16806?d=identicon)[greeflas](/maintainers/greeflas)

---

Top Contributors

[![greeflas](https://avatars.githubusercontent.com/u/17636915?v=4)](https://github.com/greeflas "greeflas (11 commits)")[![gaigelama](https://avatars.githubusercontent.com/u/5159158?v=4)](https://github.com/gaigelama "gaigelama (1 commits)")

---

Tags

curlphpphp-librarytest-task

### Embed Badge

![Health badge](/badges/greeflas-php-image-downloader/health.svg)

```
[![Health](https://phpackages.com/badges/greeflas-php-image-downloader/health.svg)](https://phpackages.com/packages/greeflas-php-image-downloader)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M92](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
