PHPackages                             mzapeka/img\_php\_loader - 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. [Image &amp; Media](/categories/media)
4. /
5. mzapeka/img\_php\_loader

ActiveLibrary[Image &amp; Media](/categories/media)

mzapeka/img\_php\_loader
========================

Simple loader of images from remote hosts

02PHP

Since Jan 9Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Mzapeka/img_php_loader)[ Packagist](https://packagist.org/packages/mzapeka/img_php_loader)[ RSS](/packages/mzapeka-img-php-loader/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

ImgLoader
=========

[](#imgloader)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2f4c16918efcb3d828ea977e78ca5f4061c9d31cb91b088b022ede713d910c9f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4d7a6170656b612f496d674c6f616465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/Mzapeka/ImgLoader)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/183f382ce83996b6a9a0e377176a8a52c9a85607a94dfb6fd8feef141b577d47/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4d7a6170656b612f496d674c6f616465722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Mzapeka/ImgLoader)[![Coverage Status](https://camo.githubusercontent.com/f29920b850c3fb682e5f4fec24abee3ce83d4d27f540f3792a274e20e0d23d4a/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f4d7a6170656b612f496d674c6f616465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Mzapeka/ImgLoader/code-structure)[![Quality Score](https://camo.githubusercontent.com/3df4f8f8f24c9b903495b680e79622ffa90989d507fbfba7fbe5477eb45e86a3/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f4d7a6170656b612f496d674c6f616465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Mzapeka/ImgLoader)[![Total Downloads](https://camo.githubusercontent.com/c7e11ad5ff4a80b035b45a6169819b16dc75e7132d6cc7bbd099f40d5a92a752/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f4d7a6170656b612f496d674c6f616465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/Mzapeka/ImgLoader)

This package is oriented for simple loading images from remote hosts via HTTP protocol. It uses [PSR-7](http://www.php-fig.org/psr/psr-7/).

Requirements
------------

[](#requirements)

Minimum PHP 7.1 is required.

CURL extension are needed.

This package uses some non-stable packages, so you must set your project's minimum stability to something like beta or dev in `composer.json`:

```
"minimum-stability": "dev",
"prefer-stable": true

```

If you don't the installation procedure below will fail.

Install
-------

[](#install)

This adapter satisfies the requirement for client-implementation and will make it possible to install the client with:

```
composer require mzapeka/img_php_loader
```

Usage - simple
--------------

[](#usage---simple)

Simplest possible use case:

```
$imgLoader = new ImgLoader();
try {
        //setup the path to folder with images
    $imgLoader->setPicFolder('test_folder');
        //setup the URL of remout host with images
    $imgLoader->setUrl('https://test.com/catalog/index.php');
    $imgLoader->uploadImages();
} catch (Exception $e){
    echo $e->getMessage();
}
```

That's it, this is all you need to get started.

Testing
-------

[](#testing)

Just run PHPUnit in the root folder of the cloned project. Some calls do require an internet connection (see `tests/Factory/EntityTest`).

```
phpunit
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Mykola Zapeka](https://github.com/Mzapeka)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor3

3 contributors hold 50%+ of commits

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/1412d1a8c71e086c3e32135464ac924663190554f16f531ece8f84620bd0e149?d=identicon)[mzapeka](/maintainers/mzapeka)

---

Top Contributors

[![philsturgeon](https://avatars.githubusercontent.com/u/67381?v=4)](https://github.com/philsturgeon "philsturgeon (49 commits)")[![frankdejonge](https://avatars.githubusercontent.com/u/534693?v=4)](https://github.com/frankdejonge "frankdejonge (33 commits)")[![ravage84](https://avatars.githubusercontent.com/u/625761?v=4)](https://github.com/ravage84 "ravage84 (10 commits)")[![jotaelesalinas](https://avatars.githubusercontent.com/u/2042875?v=4)](https://github.com/jotaelesalinas "jotaelesalinas (8 commits)")[![RobLoach](https://avatars.githubusercontent.com/u/25086?v=4)](https://github.com/RobLoach "RobLoach (7 commits)")[![hansott](https://avatars.githubusercontent.com/u/3886384?v=4)](https://github.com/hansott "hansott (7 commits)")[![EmanueleMinotto](https://avatars.githubusercontent.com/u/417201?v=4)](https://github.com/EmanueleMinotto "EmanueleMinotto (5 commits)")[![reinink](https://avatars.githubusercontent.com/u/882133?v=4)](https://github.com/reinink "reinink (5 commits)")[![bcrowe](https://avatars.githubusercontent.com/u/752603?v=4)](https://github.com/bcrowe "bcrowe (5 commits)")[![browner12](https://avatars.githubusercontent.com/u/5232313?v=4)](https://github.com/browner12 "browner12 (5 commits)")[![colinodell](https://avatars.githubusercontent.com/u/202034?v=4)](https://github.com/colinodell "colinodell (5 commits)")[![marcqualie](https://avatars.githubusercontent.com/u/101022?v=4)](https://github.com/marcqualie "marcqualie (4 commits)")[![Mzapeka](https://avatars.githubusercontent.com/u/14246952?v=4)](https://github.com/Mzapeka "Mzapeka (3 commits)")[![jclyons52](https://avatars.githubusercontent.com/u/6395559?v=4)](https://github.com/jclyons52 "jclyons52 (3 commits)")[![hassankhan](https://avatars.githubusercontent.com/u/1781985?v=4)](https://github.com/hassankhan "hassankhan (3 commits)")[![alexbilbie](https://avatars.githubusercontent.com/u/77991?v=4)](https://github.com/alexbilbie "alexbilbie (2 commits)")[![assertchris](https://avatars.githubusercontent.com/u/200609?v=4)](https://github.com/assertchris "assertchris (2 commits)")[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (2 commits)")[![dragoonis](https://avatars.githubusercontent.com/u/146321?v=4)](https://github.com/dragoonis "dragoonis (2 commits)")[![kdubuc](https://avatars.githubusercontent.com/u/895661?v=4)](https://github.com/kdubuc "kdubuc (2 commits)")

### Embed Badge

![Health badge](/badges/mzapeka-img-php-loader/health.svg)

```
[![Health](https://phpackages.com/badges/mzapeka-img-php-loader/health.svg)](https://phpackages.com/packages/mzapeka-img-php-loader)
```

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k22](/packages/bkwld-croppa)[marc1706/fast-image-size

fast-image-size is a PHP library that does almost everything PHP's getimagesize() does but without the large overhead of downloading the complete file.

959.4M20](/packages/marc1706-fast-image-size)[char0n/ffmpeg-php

PHP wrapper for FFmpeg application

495225.1k1](/packages/char0n-ffmpeg-php)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)

PHPackages © 2026

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