2017 © Pedro Peláez
 

library img_php_loader

Simple loader of images from remote hosts

image

mzapeka/img_php_loader

Simple loader of images from remote hosts

  • Tuesday, January 9, 2018
  • by mzapeka
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

ImgLoader

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

This package is oriented for simple loading images from remote hosts via HTTP protocol. It uses PSR-7., (*2)

Requirements

Minimum PHP 7.1 is required., (*3)

CURL extension are needed., (*4)

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:, (*5)

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

If you don't the installation procedure below will fail., (*6)

Install

This adapter satisfies the requirement for client-implementation and will make it possible to install the client with:, (*7)

composer require mzapeka/img_php_loader

Usage - simple

Simplest possible use case:, (*8)

$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., (*9)

Testing

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

phpunit

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details., (*11)

Security

If you discover any security related issues, please email mzapeka@gmail.com instead of using the issue tracker., (*12)

Credits

License

The MIT License (MIT). Please see License File for more information., (*13)

The Versions

09/01 2018

dev-master

9999999-dev https://github.com/mzapeka/img_php_loader

Simple loader of images from remote hosts

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

mzapeka imgloader