承接 different-technology/wraith-php 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

different-technology/wraith-php

Composer 安装命令:

composer require different-technology/wraith-php

包简介

PHP Wraith is a screenshot comparison tool using Selenium - written in PHP.

README 文档

README

Packagist Release Packagist Downloads GitHub License

PHP Wraith

PHP Wraith is a website crawler & screenshot comparison tool using Selenium - written in PHP.

This tool is based on the ideas of bbc/wraith.

Installation

Prerequisites

System requirements:

Install sources

Either install this package via composer:

composer require different-technology/wraith-php

Or clone the code from GitHub:

git clone git@github.com:different-technology/wraith-php.git
cd wraith-php
composer install

Chromedriver

Download the chromedriver for your Chrome version: https://chromedriver.chromium.org/downloads

Place the chromedriver here (optional): bin/chromedriver

Setup

Configure your website in your own YAML config file in /configs.

See example in /configs/example.yml

Start

Run chromedriver (optional)

The chromedriver has to run on configured port (default: 4444) while executing the commands.

Start the chromedriver

bin/chromedriver --port=4444

You can also use the autostart option to start the chromedriver automatically if it's not available.

Screenshots

Call the screenshot command with your config name (file name without .yml extension).

php app.php screenshot {{your-config-name}} {{threads-count(optional)}}

The results are store in the directory /data/screenshots/{{your-config-name}}/{{current-date-time}}.

Feel free to rename the last directory name from {{current-date-time}} to something meaningful.

Example:

# Take screenshots
php app.php screenshot example 3
# Rename screenshots to "before-update"
mv data/screenshots/example/2021-02-04_10-10-55 data/screenshots/example/before-update

Compare

Call the compare command with your config name (file name without .yml extension).

Provide the two directory names to compare.

php app.php compare {{your-config-name}} {{directory1}} {{directory2}}

Example:

php app.php compare example 2021-02-04_00-05-35 2021-02-04_00-38-37

Join

Cou can join a running job to work in threads on a single task (the task has to support jobs).

Just lookup the job-id in the directory /data/jobs/.

php app.php join {{your-config-name}} {{job-id}}

Example:

php app.php join example d6f7f694f8563362e17ae6ab64d1578f

List commands

Cou can list all available commands with the help command of symfony:

php app.php list

Show results

Open this file in your browser to see the results: public/index.html

different-technology/wraith-php 适用场景与选型建议

different-technology/wraith-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 8 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 02 月 04 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 different-technology/wraith-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 different-technology/wraith-php 我们能提供哪些服务?
定制开发 / 二次开发

基于 different-technology/wraith-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-02-04