Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

Everyways/imgOptimizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MultiCurl for PHP

Ultra fast non-blocking OOP wrapper for curl_multi_* functions.

Pull requests are very welcome.

Main features:

  • reuse curl resource
  • don't waste time on unnecessary cycles, careful works with select function simple queue management fully configured!
  • supports callbacks onLoad, onError, full control on http headers simple usage few tests, no docs :( sorry :(

Requires:

  • php >= 7.3
  • ext-curl
  • safe_mode = Off

Installation via Composer:

  • install Composer
  • run composer require everyways/multicurl-img-optimizer

Tests

$ vendor/bin/phpunit tests

# or via Docker
$ docker run --rm \
             -it \
             -v "$(pwd)":/app \
             -w /app \
             php:7.1 \
             /usr/local/bin/php ./vendor/phpunit/phpunit/phpunit tests
$ docker run --rm \
             -it \
             -v "$(pwd)":/app \
             -w /app \
             php:7.2 \
             /usr/local/bin/php ./vendor/phpunit/phpunit/phpunit tests
$ docker run --rm \
             -it \
             -v "$(pwd)":/app \
             -w /app \
             php:7.3 \
             /usr/local/bin/php ./vendor/phpunit/phpunit/phpunit tests
$ docker run --rm \
             -it \
             -v "$(pwd)":/app \
             -w /app \
             php:7.4 \
             /usr/local/bin/php ./vendor/phpunit/phpunit/phpunit tests

Contributing

Fork the project, create a feature branch and send us a pull request.

To ensure a consistent code base, you should make sure the code follows the PSR-* coding standards.

To avoid CS issues, you should use php-cs-fixer:

$ php-cs-fixer fix src/

Releases

No releases published

Packages

No packages published

Languages