定制 suitmedia/frontend-lighthouse-audit 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

suitmedia/frontend-lighthouse-audit

Composer 安装命令:

composer require suitmedia/frontend-lighthouse-audit

包简介

A PHP package to automate the Lighthouse Auditing for frontend development.

README 文档

README

Build Status codecov Scrutinizer Code Quality StyleCI Total Downloads Latest Stable Version License: MIT

Frontend Lighthouse Audit

A simple tool to audit all of the frontend HTML templates using lighthouse-ci CLI command.


Lighthouse Audit Example

Synopsis

This package will help you to measure and audit the quality of your frontend HTML templates. It will start a web-server automatically on the given document root path, scan all HTML files and analyse them one by one. You can also run this tool in your CI pipeline.

Table of contents

Compatibility

This package only supports PHP version 7.1 or higher.

Requirements

This package is dependent to the lighthouse-ci package and Chrome /Chromium web browser, so you need to install them first.

You can install lighthouse-ci easily, using this command:

$ npm install -g lighthouse-ci

Setup

Install the package globally using Composer :

$ composer global require suitmedia/frontend-lighthouse-audit

CLI Usage

$ lighthouse-audit -h

Usage:
  lighthouse-audit [options] [--] <path>

Arguments:
  path                                   Specify the path of a directory to analyse.

Options:
  -S, --server[=SERVER]                  Define the address and port that PHP web-server should serve. <address>:<port> [default: "localhost:8000"]
      --mode[=MODE]                      Define the mode to run Lighthouse audit. Option: mobile,desktop [default: "mobile"]
      --performance[=PERFORMANCE]        Define the minimal performance score for audit to pass [default: "80"]
      --best-practices[=BEST-PRACTICES]  Define the minimal best-practices score for audit to pass [default: "80"]
      --accessibility[=ACCESSIBILITY]    Define the minimal accessibility score for audit to pass [default: "80"]
      --seo[=SEO]                        Define the minimal seo score for audit to pass [default: "80"]
      --pwa[=PWA]                        Define the minimal pwa score for audit to pass [default: "0"]
      --except[=EXCEPT]                  Provide a list of filenames that you wish to exclude, separated by commas.

      --chrome-flags[=CHROME-FLAGS]      Custom flags to pass to Chrome (space-delimited). For a full list of flags,
                                         see http://peter.sh/experiments/chromium-command-line-switches/.

  -h, --help                             Display this help message
  -V, --version                          Display this application version

License

The MIT License (MIT). Please see License File for more information.

suitmedia/frontend-lighthouse-audit 适用场景与选型建议

suitmedia/frontend-lighthouse-audit 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5.89k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2019 年 02 月 16 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 suitmedia/frontend-lighthouse-audit 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-02-16