承接 heartsentwined/zf2-browser 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

heartsentwined/zf2-browser

Composer 安装命令:

composer require heartsentwined/zf2-browser

包简介

web browser with quick browse methods using zf2's HTTP Client and cURL

README 文档

README

Build Status

web browser with quick browse methods using zf2's HTTP Client and cURL

Installation

Composer:

{
  "require": {
    "yalesov/zf2-browser": "2.*"
  }
}

Copy config/browser.local.php.dist into (app root)/config/autoload/browser.local.php, and edit configs as described below.

Config

The browser alias can be changed to anything you like.

  • cookieDir: directory for storing cookies. Make sure you create this directory, and that it is writable by www-data (or whatever your PHP scripts run as); or at least that its parent directory is writable (the script will create this dir for you in this case).
  • cookieLife: lifetime for cookie files (minute)
  • connectTimeout: max time to wait when connecting (second)
  • options: wrapper for \Zend\Http\Client::setOptions()
  • headers: wrapper for \Zend\Http\Client::setHeaders()

Usage

Get a browser instance

// $locator instanceof ServiceLocator
$browser = $locator->get('browser')->newInstance();

GET a page

$responseBody = $browser->get('http://example.com');

POST to a page with param foo = bar

$responseBody = $browser->post('http://example.com', array('foo' => 'bar'));

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: ISC
  • 更新时间: 2012-09-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固