Yii 1.1: dgwebbrowser

The DGWebBrowser is a wrapper of sfWebBrowserPlugin.
5 followers

DGWebBrowser Extension

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

Total 1 comment

#8415 report it
akimvital at 2012/06/01 05:41am
File missing

There are no sfConfig class specified in component, but used in code

Leave a comment

Please to leave your comment.

Create extension