behat/mink-goutte-driver 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

behat/mink-goutte-driver

最新稳定版本:v2.0.0

Composer 安装命令:

composer require --dev behat/mink-goutte-driver

包简介

Goutte driver for Mink framework

README 文档

README

Latest Stable Version Latest Unstable Version Total Downloads CI License codecov

Deprecation

Given that the Goutte project is deprecated in favor of using the symfony/http-client and symfony/browser-kit projects directly, this driver is deprecated in favor of behat/mink-browserkit-driver and won't be updated anymore.

Usage Example

<?php

require "vendor/autoload.php";

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

$mink = new Mink(array(
    'goutte' => new Session(new GoutteDriver(new GoutteClient())),
));

$session = $mink->getSession('goutte');
$session->visit("http://php.net/");
$session->getPage()->clickLink('Downloads');
echo $session->getCurrentUrl() . PHP_EOL;

Installation

Add a file composer.json with content:

{
    "require": {
        "behat/mink":               "^1.9",
        "behat/mink-goutte-driver": "^2.0"
    }
}

(or merge the above into your project's existing composer.json file)

$> curl -sS https://getcomposer.org/installer | php
$> php composer.phar install

Maintainers

统计信息

  • 总下载量: 39.92M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 305
  • 点击次数: 1
  • 依赖项目数: 370
  • 推荐数: 9

GitHub 信息

  • Stars: 301
  • Watchers: 8
  • Forks: 52
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04