Merge branch 'release/0.4.5'

This commit is contained in:
Walter Dal Mut
2015-06-14 11:51:11 +02:00
2 changed files with 25 additions and 22 deletions
+24 -21
View File
@@ -1,7 +1,5 @@
# InfluxDB PHP SDK
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/699a9a78-39aa-41d0-bb60-41dbf0f1251d/big.png)](https://insight.sensiolabs.com/projects/699a9a78-39aa-41d0-bb60-41dbf0f1251d)
* Master: [![Build Status](https://travis-ci.org/corley/influxdb-php-sdk.svg?branch=master)](https://travis-ci.org/corley/influxdb-php-sdk)
* Develop: [![Build Status](https://travis-ci.org/corley/influxdb-php-sdk.svg?branch=develop)](https://travis-ci.org/corley/influxdb-php-sdk)
@@ -27,10 +25,12 @@ Just use composer
}
```
## Use it
Add new points:
```php
$client->mark("app.search", [
$client->mark("app-search", [
"key" => "this is my search"
]);
```
@@ -54,11 +54,10 @@ $client->mark([
]);
```
Retrieve existing points:
```php
$results = $client->query('select * from "app.search"');
$results = $client->query('select * from "app-search"');
```
## InfluxDB client adapters
@@ -72,22 +71,6 @@ Actually we supports two network adapters
In order to use the UDP/IP adapter your must have PHP compiled with the `sockets` extension.
To verify if you have the `sockets` extension just issue a:
```bash
php -m | grep sockets
```
If you don't have the `sockets` extension, you can proceed in two ways:
- Recompile your PHP whith the `--enable-sockets` flag
- Or just compile the `sockets` extension extracting it from the PHP source.
1. Download the source relative to the PHP version that you on from [here](https://github.com/php/php-src/releases)
2. Enter in the `ext/sockets` directory
3. Issue a `phpize && ./configure && make -j && sudo make install`
4. Add `extension=sockets.so` to your php.ini
**Usage**
```php
@@ -288,3 +271,23 @@ Corley\Benchmarks\InfluxDB\MessageToInlineProtocolEvent
convertMessageToInlineProtocolWithDifferentTagLevels: [10,000 ] [0.0000343942404] [29,074.63543]
```
## FAQ
### Add sockets support to your PHP
To verify if you have the `sockets` extension just issue a:
```bash
php -m | grep sockets
```
If you don't have the `sockets` extension, you can proceed in two ways:
- Recompile your PHP whith the `--enable-sockets` flag
- Or just compile the `sockets` extension extracting it from the PHP source.
1. Download the source relative to the PHP version that you on from [here](https://github.com/php/php-src/releases)
2. Enter in the `ext/sockets` directory
3. Issue a `phpize && ./configure && make -j && sudo make install`
4. Add `extension=sockets.so` to your php.ini
+1 -1
View File
@@ -1 +1 @@
0.4.4
0.4.5