dev-master
9999999-dev https://github.com/mzapeka/img_php_loaderSimple loader of images from remote hosts
MIT
The Requires
- php >=7.1
The Development Requires
mzapeka imgloader
Wallogit.com
2017 © Pedro Peláez
Simple loader of images from remote hosts
![Software License][ico-license]
![Coverage Status][ico-scrutinizer]
![Total Downloads][ico-downloads], (*1)
This package is oriented for simple loading images from remote hosts via HTTP protocol. It uses PSR-7., (*2)
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)
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
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)
Just run PHPUnit in the root folder of the cloned project.
Some calls do require an internet connection (see tests/Factory/EntityTest)., (*10)
phpunit
Please see CONTRIBUTING and CODE_OF_CONDUCT for details., (*11)
If you discover any security related issues, please email mzapeka@gmail.com instead of using the issue tracker., (*12)
The MIT License (MIT). Please see License File for more information., (*13)
Simple loader of images from remote hosts
MIT
mzapeka imgloader