PHP code example of heartsentwined / zf2-browser
1. Go to this page and download the library: Download heartsentwined/zf2-browser library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
heartsentwined / zf2-browser example snippets
// $locator instanceof ServiceLocator
$browser = $locator->get('browser')->newInstance();
$responseBody = $browser->get('http://example.com');
$responseBody = $browser->post('http://example.com', array('foo' => 'bar'));