Change name of Udp adapter in UdpAdapter, add readme.md

This commit is contained in:
Gianluca Arbezzano
2014-09-10 12:55:29 +02:00
parent 8ba6332a08
commit 7733cd1743
3 changed files with 14 additions and 3 deletions
+11
View File
@@ -0,0 +1,11 @@
# InfluxDB PHP SDK
Send message to InfluxDB.
```php
$client = new \InfluxDB\Client();
$client->setAdapter(new \InfluxDB\Adapter\UdpAdapter());
$client->mark("search", [
"query" => "php"
]);
```
@@ -5,7 +5,7 @@ namespace spec\InfluxDB\Adapter;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
class UdpSpec extends ObjectBehavior
class UdpAdapterSpec extends ObjectBehavior
{
function let()
{
@@ -14,7 +14,7 @@ class UdpSpec extends ObjectBehavior
function it_is_initializable()
{
$this->shouldHaveType('InfluxDB\Adapter\Udp');
$this->shouldHaveType('InfluxDB\Adapter\UdpAdapter');
}
function it_should_implement_adapter_interface()
@@ -2,7 +2,7 @@
namespace InfluxDB\Adapter;
class Udp implements AdapterInterface
class UdpAdapter implements AdapterInterface
{
private $host;
private $port;