Download the PHP package uuf6429/mink-electron-driver without Composer
On this page you can find all versions of the php package uuf6429/mink-electron-driver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package mink-electron-driver
Mink Electron Driver
Mink Electron Driver (replaces JsonWireProtocol and PhantomJS with Electron)
Electron is between 2 to 3 times faster than PhantomJS (source).
Table Of Contents
- Mink Electron Driver
- Table Of Contents
- Features and Advantages
- Requirements
- Installation
- How Does It Work?
Features and Advantages
- Fully-featured web browser
- Quite fast, compared to alternatives
- Built with modern components
- Well supported (Electron receives frequent updates)
- Easily understandable codebase (it's either PHP or JS)
- Well tested (in addition to Mink driver tests, there are others)
Requirements
There a few things which are not taken care of automatically depending on your system.
- Basics
- PHP (5.5+) and Composer
- Node.js (4+) and npm
- Linux
- If run headless (ie, without a desktop) you need to install xvfb
- Some libraries are required, more details here
- Windows
- Build Tools may be required. These can be installed with one npm command
Installation
First make sure that the requirements above are met.
Next, simply install the driver in your Behat project via Composer:
How Does It Work?
Since one cannot easily control Node.js from PHP, a client-server approach was taken, with a fast and lightweight transport (unix domain sockets) protocol (dnode).
The driver on the PHP side simply tells the server what to do and it controls the Electron web browser.
The main reason why a client-server approach was taken is that Mink is synchronous by design.
All versions of mink-electron-driver with dependencies
behat/mink Version ~1.7
behat/mink-extension Version ^2.2
behat/behat Version ~3.0
uuf6429/dnode-php-sync-client Version ^2.0
symfony/process Version ^3.0 || ^4.0
eloquent/composer-npm-bridge Version ^3.0 || ^4.0
roave/security-advisories Version dev-master