Coder Social home page Coder Social logo

chrome-php's Introduction

ChromePHP

Parallel headless Chrome operations via PHP

This library allows you control multiple headless Chrome browsers at the same time to process an operation queue faster.

PHP launches and manages headless Chrome browsers, including respawing killed browsers, which then runs NodeJS processes to interact with those Chrome instances, and returns promises for each process.

The most common use cases are:

  • Crawl web sites for 404 errors, JavaScript errors and mismatched HTML tags
  • Check page load times in bulk
  • Capture detailed HAR snapshots
  • Take screenshots in bulk
  • Any automated UI testing

Prepared Solutions

  • HAR capture with optional sources - HarProcess
  • Emulated device screenshots (even full page over 16,384px) - ScreenshotProcess
  • Page information including all JS errors - PageInfoProcess
  • Any custom Chrome interaction - NodeProcess

Examples

See the /examples folder for examples and detailed comments.

Installation

Running composer update will install the composer packages, install NodeJS and NPM if not already installed, and install the required NodeJS packages as well. The operations of NodeJS should be completely transparent.

.npmrc

This file contains the project NPM overrides. By default the equivalent of "--no-bin-links" is set because NTFS shared folders cannot use automatic symlinks.

chrome-php's People

Stargazers

Luu123 avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

codesorter2015

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.