luka-dev/playwright-php 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

luka-dev/playwright-php

最新稳定版本:1.1.13.1

Composer 安装命令:

composer require luka-dev/playwright-php

包简介

A PHP Module, that help with generating of task script for playwright and send it node.js

README 文档

README

Install with composer

composer require luka-dev/playwright-php

A PHP Module, that help with generating of task script for playwright and send it node.js server

All detailed information here

Code example

$connectionConfig = new \ConnectionConfig('localhost');

$contextConfig = new ContextConfig();

$contextConfig->setUserAgent('Custom UserAgent');
$contextConfig->setProxy(
    'protocol://address:port',
    null,
    'username',
    'password'
);


$taskServer = new \TaskServer($connectionConfig, $contextConfig);

$script = new Context();

$page = $script->newPage();
$page->goto('https://2ip.ru/');
$element = $page->query('div.ip');
$element->textContentToVar('ip');
$script->resolve('ip');

$response = $taskServer->runTask($script);

统计信息

  • 总下载量: 15.57k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 9
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-09-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固