- Notifications
You must be signed in to change notification settings - Fork0
Ahmard/reactphp-querylist
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This library broughtReactPHP andQueryListtogether.
composer require ahmard/reactphp-querylist
- Playing withQueryList(scraping)
useReactphpQuerylist\Client;useReactphpQuerylist\Queryable;require'vendor/autoload.php';Client::get('https://google.com') ->then(function (Queryable$queryable){$title =$queryable->queryList()->find('head title')->text();var_dump($title); }) ->otherwise(function ($error){echo$error; });
- Working with response object
useReactphpQuerylist\Client;useReactphpQuerylist\Queryable;require'vendor/autoload.php';Client::get('https://google.com') ->then(function (Queryable$queryable){var_dump($queryable->response()->getReasonPhrase()); }) ->otherwise(function ($error){echo$error; });
About
This library brought ReactPHP and QueryList together
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.