感观 / buzz-bundle
v1.1.0
2016-03-15 10:06 UTC
Requires
- php: >=5.3.2
- kriswallsmith/buzz: > 0.6
This package is auto-updated.
Last update: 2022-02-01 12:20:08 UTC
README
此包提供对 Kris Wallsmith 的 "Buzz 库" 的简单集成。Buzz 是一个轻量级的 PHP 5.3 库,用于发送 HTTP 请求。您可以在 https://github.com/kriswallsmith/Buzz 的专用页面上找到有关 Buzz 的更多信息。
<?php
$buzz = $this->container->get('buzz');
该包提供了一个新的 buzz
服务,它返回一个 Buzz\Browser
实例。
安装
通过 packagist 安装此包是最快和最简单的方法。以下是步骤
步骤 1: Composer require
$ php composer.phar require "sensio/buzz-bundle":"dev-master"
步骤 2: 在内核中启用该包
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Sensio\Bundle\BuzzBundle\SensioBuzzBundle(),
// ...
);
}
这样就完成了!您现在可以使用 symfony2 使用 Buzz。