Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

This library brought ReactPHP and QueryList together

NotificationsYou must be signed in to change notification settings

Ahmard/reactphp-querylist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This library broughtReactPHP andQueryListtogether.

Installation

composer require ahmard/reactphp-querylist

Usage

  • 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

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp