denis-kisel / laravel-phantomjs-curl
A phantomjsCURL for get content of difficult sites
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/denis-kisel/laravel-phantomjs-curl
Requires
- php: >=7.2
- illuminate/support: >=5.0
Requires (Dev)
- orchestra/testbench: ^4.0
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2025-09-23 05:44:50 UTC
README
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();