Skip to content

Commit

Permalink
Merge pull request #5 from graze/php7
Browse files Browse the repository at this point in the history
update copyright and readme
  • Loading branch information
Harry Bragg authored Aug 4, 2016
2 parents 91e46a3 + c549e16 commit 74d0bd9
Show file tree
Hide file tree
Showing 18 changed files with 191 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ your configuration:
```php
$statsd->increment('web.pageview');
$statsd->decrement('storage.remaining');
$statsd->increment(array(
$statsd->increment([
'first.metric',
'second.metric'
), 2);
], 2);
$statsd->increment('web.clicks', 1, 0.5);
```

Expand Down Expand Up @@ -117,7 +117,7 @@ $statsd->event(
'build.success',
'The build super_awesome_application_build_1 has completed',
[
'time' => time(),
'time' => time(),
'alert' => Client::ALERT_SUCCESS,
],
[
Expand Down Expand Up @@ -150,7 +150,7 @@ Send the same base tags with every request
$client = new Client();
$client->configure([
'tags' => [
'env' =>'live',
'env' => 'live',
'release' => 'app-2.3.1',
],
]);
Expand Down
11 changes: 11 additions & 0 deletions src/Client.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<?php
/**
* This file is part of graze/dog-statsd
*
* Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license https://github.com/graze/dog-statsd/blob/master/LICENSE.md
* @link https://github.com/graze/dog-statsd
*/

namespace Graze\DogStatsD;

Expand Down
11 changes: 11 additions & 0 deletions src/Exception/ConfigurationException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<?php
/**
* This file is part of graze/dog-statsd
*
* Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license https://github.com/graze/dog-statsd/blob/master/LICENSE.md
* @link https://github.com/graze/dog-statsd
*/

namespace Graze\DogStatsD\Exception;

Expand Down
11 changes: 11 additions & 0 deletions src/Exception/ConnectionException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<?php
/**
* This file is part of graze/dog-statsd
*
* Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license https://github.com/graze/dog-statsd/blob/master/LICENSE.md
* @link https://github.com/graze/dog-statsd
*/

namespace Graze\DogStatsD\Exception;

Expand Down
11 changes: 11 additions & 0 deletions src/Exception/RuntimeException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<?php
/**
* This file is part of graze/dog-statsd
*
* Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license https://github.com/graze/dog-statsd/blob/master/LICENSE.md
* @link https://github.com/graze/dog-statsd
*/

namespace Graze\DogStatsD\Exception;

Expand Down
11 changes: 11 additions & 0 deletions tests/src/TestCase.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<?php
/**
* This file is part of graze/dog-statsd
*
* Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license https://github.com/graze/dog-statsd/blob/master/LICENSE.md
* @link https://github.com/graze/dog-statsd
*/

namespace Graze\DogStatsD\Test;

Expand Down
11 changes: 11 additions & 0 deletions tests/unit/ClientTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<?php
/**
* This file is part of graze/dog-statsd
*
* Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license https://github.com/graze/dog-statsd/blob/master/LICENSE.md
* @link https://github.com/graze/dog-statsd
*/

namespace Graze\DogStatsD\Test\Unit;

Expand Down
11 changes: 11 additions & 0 deletions tests/unit/ConfigurationTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<?php
/**
* This file is part of graze/dog-statsd
*
* Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license https://github.com/graze/dog-statsd/blob/master/LICENSE.md
* @link https://github.com/graze/dog-statsd
*/

namespace Graze\DogStatsD\Test\Unit;

Expand Down
11 changes: 11 additions & 0 deletions tests/unit/ConnectionTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<?php
/**
* This file is part of graze/dog-statsd
*
* Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license https://github.com/graze/dog-statsd/blob/master/LICENSE.md
* @link https://github.com/graze/dog-statsd
*/

namespace Graze\DogStatsD\Test\Unit;

Expand Down
11 changes: 11 additions & 0 deletions tests/unit/CounterTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<?php
/**
* This file is part of graze/dog-statsd
*
* Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license https://github.com/graze/dog-statsd/blob/master/LICENSE.md
* @link https://github.com/graze/dog-statsd
*/

namespace Graze\DogStatsD\Test\Unit;

Expand Down
11 changes: 11 additions & 0 deletions tests/unit/EventTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<?php
/**
* This file is part of graze/dog-statsd
*
* Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license https://github.com/graze/dog-statsd/blob/master/LICENSE.md
* @link https://github.com/graze/dog-statsd
*/

namespace Graze\DogStatsD\Test\Unit;

Expand Down
11 changes: 11 additions & 0 deletions tests/unit/ExceptionTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<?php
/**
* This file is part of graze/dog-statsd
*
* Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license https://github.com/graze/dog-statsd/blob/master/LICENSE.md
* @link https://github.com/graze/dog-statsd
*/

namespace Graze\DogStatsD\Test\Unit;

Expand Down
11 changes: 11 additions & 0 deletions tests/unit/GaugeTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<?php
/**
* This file is part of graze/dog-statsd
*
* Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license https://github.com/graze/dog-statsd/blob/master/LICENSE.md
* @link https://github.com/graze/dog-statsd
*/

namespace Graze\DogStatsD\Test\Unit;

Expand Down
11 changes: 11 additions & 0 deletions tests/unit/NamespaceTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<?php
/**
* This file is part of graze/dog-statsd
*
* Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license https://github.com/graze/dog-statsd/blob/master/LICENSE.md
* @link https://github.com/graze/dog-statsd
*/

namespace Graze\DogStatsD\Test\Unit;

Expand Down
11 changes: 11 additions & 0 deletions tests/unit/ServiceCheckTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<?php
/**
* This file is part of graze/dog-statsd
*
* Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license https://github.com/graze/dog-statsd/blob/master/LICENSE.md
* @link https://github.com/graze/dog-statsd
*/

namespace Graze\DogStatsD\Test\Unit;

Expand Down
11 changes: 11 additions & 0 deletions tests/unit/SetTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<?php
/**
* This file is part of graze/dog-statsd
*
* Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license https://github.com/graze/dog-statsd/blob/master/LICENSE.md
* @link https://github.com/graze/dog-statsd
*/

namespace Graze\DogStatsD\Test\Unit;

Expand Down
11 changes: 11 additions & 0 deletions tests/unit/TagsTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<?php
/**
* This file is part of graze/dog-statsd
*
* Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license https://github.com/graze/dog-statsd/blob/master/LICENSE.md
* @link https://github.com/graze/dog-statsd
*/

namespace Graze\DogStatsD\Test\Unit;

Expand Down
11 changes: 11 additions & 0 deletions tests/unit/TimerTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<?php
/**
* This file is part of graze/dog-statsd
*
* Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license https://github.com/graze/dog-statsd/blob/master/LICENSE.md
* @link https://github.com/graze/dog-statsd
*/

namespace Graze\DogStatsD\Test\Unit;

Expand Down

0 comments on commit 74d0bd9

Please sign in to comment.