dgwebbrowser The DGWebBrowser is a wrapper of sfWebBrowserPlugin.

DGWebBrowser Extension

  1. Requirements
  2. Installation
  3. Usage:
  4. Changelog:

DoubleGIS company presents Yii extensions. The DGApiClient is a wrapper of sfWebBrowserPlugin.

Requirements

  • Yii 1.1.*
  • sfWebBrowserPlugin (already included into the package)

Installation

  • Unpack all files (including sfWebBrowser directory) under your project 'component' folder
  • Include your new extension into your project main.php configuration file:
'components' => array(
        
        ...
        
	'webBrowser' => array( 
		'class' 	=> 'application.components.DGWebBrowser.DGWebBrowser',
		'adapter'	=> 'curl'   // curl | sockets | fopen
	),
        
        ...
        
      )
  • Enjoy!

Usage:

Yii::App()->webBrowser->get("http://api.2gis.ru");

echo Yii::App()->webBrowser->getResponseText();

For detailed description of methods and their parameters see documentation of the extension's base -- sfWebBrowserPlugin -- on http://www.symfony-project.org/plugins/sfWebBrowserPlugin/1_1_2

Support: curl, fopen and socket

Changelog:

  • 1.0 Initial release
8 2
5 followers
600 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Web Service
Developed by: a.spiridonov
Created on: Oct 13, 2011
Last updated: 6 years ago

Downloads

show all

Related Extensions