sensio/buzz-bundle

This package is abandoned and no longer maintained. The author suggests using the symfony/flex package instead.

Bundle around the Buzz HTTP client

Installs: 2 042 452

Dependents: 43

Suggesters: 3

Security: 0

Stars: 88

Watchers: 14

Forks: 35

Open Issues: 6

Type:symfony-bundle

v1.1.0 2016-03-15 10:06 UTC

This package is auto-updated.

Last update: 2022-02-01 12:20:08 UTC


README

This bundle provides a simple integration of the "Buzz library" from Kris Wallsmith into Symfony2. Buzz is a lightweight PHP 5.3 library for issuing HTTP requests. You can find more information about Buzz on its dedicated page at https://github.com/kriswallsmith/Buzz.

<?php

$buzz = $this->container->get('buzz');

The bundle provides a new buzz service that returns an instance of Buzz\Browser.

Installation

Installing the bundle via packagist is the quickest and simplest method of installing the bundle. Here are the steps:

Step 1: Composer require

$ php composer.phar require "sensio/buzz-bundle":"dev-master"

Step 2: Enable the bundle in the kernel

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Sensio\Bundle\BuzzBundle\SensioBuzzBundle(),
        // ...
    );
}

That's it! You are ready to use Buzz with symfony2.