This repository has been archived by the owner. It is now read-only.
PHP 5.3+ web browser emulator abstraction
Clone or download
Pull request Compare This branch is 129 commits behind minkphp:master.
stof Merge pull request #614 from aik099/hhvm-html-file-read-fix
Solve HTML file reading issue on HHVM 3.0
Latest commit d99b94a Oct 27, 2014


Latest Stable Version Latest Unstable Version Total Downloads Scrutinizer Quality Score Code Coverage Build Status SensioLabsInsight License

Useful Links

Usage Example


use Behat\Mink\Mink,
    Behat\Mink\Driver\Goutte\Client as GoutteClient;

$startUrl = '';

// init Mink and register sessions
$mink = new Mink(array(
    'goutte1' => new Session(new GoutteDriver(new GoutteClient())),
    'goutte2' => new Session(new GoutteDriver(new GoutteClient())),
    'custom'  => new Session(new MyCustomDriver($startUrl))

// set the default session name

// visit a page

// call to getSession() without argument will always return a default session if has one (goutte2 here)
echo $mink->getSession()->getPage()->getContent();

// call to getSession() with argument will return session by its name
echo $mink->getSession('custom')->getPage()->getContent();

// this all is done to make possible mixing sessions

Install Dependencies

$> curl -sS | php
$> php composer.phar install