LaravelPackages.net
Acme Inc.
Toggle sidebar
denis-kisel/laravel-phantomjs-curl

A phantomjsCURL for get content of difficult sites

8
1
v1.0
About denis-kisel/laravel-phantomjs-curl

denis-kisel/laravel-phantomjs-curl is a Laravel package for a phantomjscurl for get content of difficult sites. It currently has 1 GitHub stars and 8 downloads on Packagist (latest version v1.0). Install it with composer require denis-kisel/laravel-phantomjs-curl. Discover more Laravel packages by denis-kisel or browse all Laravel packages to compare alternatives.

Last updated

Phantom CURL

Basics on phantomjs for get content difficult sites.

More Powerful Lib

This first version for simple usage, if you need full power, see this sourse: CasperCURL

Installation

Install via composer

composer require denis-kisel/phantom-curl

Publish Configuration File

php artisan vendor:publish --provider="DenisKisel\PhantomCURL\ServiceProvider" --tag="config"

Change config phantom_curl if you need to change storage dir or replace phantomjs bin.

Usage

//Return content page
\DenisKisel\PhantomCURL\PhantomCURL::to('https://amazon.com')->get() 


//Use Proxy
//$method available - [http|socks5|none] (default is http)
\DenisKisel\PhantomCURL\PhantomCURL::to('https://google.com')
    ->withProxy($ip, $port, $method, $login, $pass)
    ->get();
    
//Change window size (default is 1024x768)
\DenisKisel\PhantomCURL\PhantomCURL::to('https://google.com')->windowSize(1920, 1080)->get();

Star History Chart