PHP Headless Browser?(PHP无头浏览器?)
问题描述
是否有适用于 PHP 的无头浏览器库?想要内置 JS 引擎的东西.FOSS 首选.
Is there a headless browser library for PHP? Would like something that has a JS engine built into it. FOSS preferred.
推荐答案
PhantomJS - http://phantomjs.org/
PhantomJS 是一个带有 JavaScript API 的无头 WebKit.它对各种 Web 标准提供快速和原生支持:DOM 处理、CSS 选择器、JSON、Canvas 和 SVG.
PhantomJS is a headless WebKit with JavaScript API. It has fast and native support for various web standards: DOM handling, CSS selector, JSON, Canvas, and SVG.
您可以将它与 php-PhantomjsRunner 之类的东西结合起来em>(现已弃用) 如果您想要或自己做饭.
You can couple it with something like php-PhantomjsRunner (now deprecated) if you want or bake your own.
当设置好并准备好开始使用 PhantomJS 进行测试时,选择各种测试框架 随时为您服务.
When setup and ready to start testing with PhantomJS, pick out one of the various Testing Frameworks at your disposal.
我最近也看到了这个教程来自 tutsplus应该对任何人都有帮助.
I recently also came across this tutorial from tutsplus should it help anyone.
这篇关于PHP无头浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:PHP无头浏览器?


基础教程推荐
- 超薄框架REST服务两次获得输出 2022-01-01
- XAMPP 服务器不加载 CSS 文件 2022-01-01
- mysqli_insert_id 是否有可能在高流量应用程序中返回 2021-01-01
- 通过 PHP SoapClient 请求发送原始 XML 2021-01-01
- Libpuzzle 索引数百万张图片? 2022-01-01
- 在 Woocommerce 中根据运输方式和付款方式添加费用 2021-01-01
- 在多维数组中查找最大值 2021-01-01
- 如何在 PHP 中的请求之间持久化对象 2022-01-01
- 在 PHP 中强制下载文件 - 在 Joomla 框架内 2022-01-01
- WooCommerce 中选定产品类别的自定义产品价格后缀 2021-01-01