2017 © Pedro Peláez
 

library lcurl

Laravel package for work with curl

image

hamway/lcurl

Laravel package for work with curl

  • Thursday, July 23, 2015
  • by hamway
  • Repository
  • 2 Watchers
  • 1 Stars
  • 25 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

lcurl

Author: Evgeny Anoykin hamway0611@gmail.com, (*1)

A Laravel Curl library for get content via proxy or direct (support random user agents, random interval between requests)., (*2)

Requirements

  • curl
  • Laravel >= 4.2 (v1.x)
  • Laravel >= 5.1 (v2.x)

Soon

  • Post request supported

How to install?

Require this package with composer using the following command:, (*3)

composer require hamway/lcurl

After updating composer, add the service provider to the providers array in config/app.php, (*4)

'Hamway\LCurl\LCurlServiceProvider',

And alias, (*5)

'LCurl' => 'Hamway\LCurl\Facades\LCurl',

How to configure?

After install library ready to use. But may be configure. For publish package config use command:, (*6)

php artisan config:publish hamway/lcurl

Package configuration file example:, (*7)

return array(
    'timeout'   => 50,              // Max curl timeout
    'userAgent' => true,            // Generate useragent
    'sleep'     => [                // pause between requests in seconds
        'min' => 0,
        'max' => 0
    ],
    'proxy'     => false,           // use proxy
    'proxyList' => [                // proxy list
        '118.97.194.49:8080'
    ]
);

How to use?

Build url for request:, (*8)

LCurl::buildUrl($url, array $query)

Get page content:, (*9)

LCurl::get($url)

Get image from page (saveTo - path to image if need save):, (*10)

LCurl::getImage($url, $saveTo)

License

lcurl is offered under the MIT license. See the LICENSE file., (*11)

The Versions

23/07 2015

dev-master

9999999-dev

Laravel package for work with curl

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Evgeny Anoykin

laravel curl

23/07 2015

v2.0.2

2.0.2.0

Laravel package for work with curl

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Evgeny Anoykin

laravel curl

23/07 2015

dev-laravel-4

dev-laravel-4

Laravel package for work with curl

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Evgeny Anoykin

laravel curl

23/07 2015

v1.2.2

1.2.2.0

Laravel package for work with curl

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Evgeny Anoykin

laravel curl

23/07 2015

v1.2

1.2.0.0

Laravel package for work with curl

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Evgeny Anoykin

laravel curl

20/10 2014

v0.1.0

0.1.0.0

Laravel package for work with curl

  Sources   Download

proprietary

The Requires

  • php >=5.4.0

 

by Evgeny Anoykin

laravel curl