Skip to content

Commit 8031727

Browse files
committed
Fork Flowdock to Flowdock Client.
1 parent 287bfdc commit 8031727

18 files changed

+70
-91
lines changed

LICENSE

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2013-2014 Rémi Marseille <[email protected]>
3+
Copyright (c) 2018, PHP Censor.
4+
5+
Copyright (c) 2013, Rémi Marseille <[email protected]>
46

57
Permission is hereby granted, free of charge, to any person obtaining a copy
68
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 19 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
1-
Flowdock library
2-
================
1+
Flowdock Client
2+
===============
33

4-
This library allows you to interact with the [Flowdock](https://www.flowdock.com/) API.
5-
6-
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/e7e69bdb-dce1-4189-b3d8-ae3ee661dbc9/big.png)](https://insight.sensiolabs.com/projects/e7e69bdb-dce1-4189-b3d8-ae3ee661dbc9)
7-
8-
[![Build Status](https://travis-ci.org/mremi/Flowdock.svg?branch=master)](https://travis-ci.org/mremi/Flowdock)
9-
[![Total Downloads](https://poser.pugx.org/mremi/flowdock/downloads.svg)](https://packagist.org/packages/mremi/flowdock)
10-
[![Latest Stable Version](https://poser.pugx.org/mremi/flowdock/v/stable.svg)](https://packagist.org/packages/mremi/flowdock)
11-
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/mremi/Flowdock/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/mremi/Flowdock/?branch=master)
12-
[![Code Coverage](https://scrutinizer-ci.com/g/mremi/Flowdock/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/mremi/Flowdock/?branch=master)
4+
This library allows you to interact with the [Flowdock](https://www.flowdock.com/) API. Flowdock client is fork of
5+
[Flowdock](https://github.com/mremi/Flowdock).
136

147
**Basic Docs**
158

@@ -30,18 +23,18 @@ Add Flowdock in your composer.json:
3023
```js
3124
{
3225
"require": {
33-
"mremi/flowdock": "dev-master"
26+
"php-censor/flowdock-client": "dev-master"
3427
}
3528
}
3629
```
3730

3831
Now tell composer to download the library by running the command:
3932

4033
``` bash
41-
$ php composer.phar update mremi/flowdock
34+
$ php composer.phar update php-censor/flowdock-client
4235
```
4336

44-
Composer will install the library to your project's `vendor/mremi` directory.
37+
Composer will install the library to your project's `vendor/php-censor` directory.
4538

4639
<a name="push-api"></a>
4740

@@ -52,12 +45,12 @@ Composer will install the library to your project's `vendor/mremi` directory.
5245
```php
5346
<?php
5447

55-
use Mremi\Flowdock\Api\Push\ChatMessage;
56-
use Mremi\Flowdock\Api\Push\Push;
48+
use FlowdockClient\Api\Push\ChatMessage;
49+
use FlowdockClient\Api\Push\Push;
5750

5851
$message = ChatMessage::create()
59-
->setContent('This message has been sent with mremi/flowdock PHP library')
60-
->setExternalUserName('mremi')
52+
->setContent('This message has been sent with php-censor/flowdock-client PHP library')
53+
->setExternalUserName('php-censor)
6154
->addTag('#hello-world');
6255

6356
$push = new Push('your_flow_api_token');
@@ -77,28 +70,28 @@ $ bin/flowdock send-chat-message --help
7770
Some arguments are mandatory:
7871

7972
```bash
80-
$ bin/flowdock send-chat-message your_flow_api_token "This message has been sent with mremi/flowdock PHP library" mremi
73+
$ bin/flowdock send-chat-message your_flow_api_token "This message has been sent with php-censor/flowdock-client PHP library" php-censor
8174
```
8275

8376
Some options are available:
8477

8578
```bash
86-
$ bin/flowdock send-chat-message your_flow_api_token "This message has been sent with mremi/flowdock PHP library" mremi --message-id=12 --tags="#hello" --tags="#world" --options='{"connect_timeout":1,"timeout":1}'
79+
$ bin/flowdock send-chat-message your_flow_api_token "This message has been sent with php-censor/flowdock-client PHP library" php-censor --message-id=12 --tags="#hello" --tags="#world" --options='{"connect_timeout":1,"timeout":1}'
8780
```
8881

8982
### Team Inbox
9083

9184
```php
9285
<?php
9386

94-
use Mremi\Flowdock\Api\Push\Push;
95-
use Mremi\Flowdock\Api\Push\TeamInboxMessage;
87+
use FlowdockClient\Api\Push\Push;
88+
use FlowdockClient\Api\Push\TeamInboxMessage;
9689

9790
$message = TeamInboxMessage::create()
9891
->setSource('source')
99-
->setFromAddress('from.mremi@test.com')
92+
->setFromAddress('test@test.com')
10093
->setSubject('subject')
101-
->setContent('This message has been sent with mremi/flowdock PHP library');
94+
->setContent('This message has been sent with php-censor/flowdock-client PHP library');
10295

10396
$push = new Push('your_flow_api_token');
10497

@@ -117,13 +110,13 @@ $ bin/flowdock send-team-inbox-message --help
117110
Some arguments are mandatory:
118111

119112
```bash
120-
$ bin/flowdock send-team-inbox-message your_flow_api_token source "from.mremi@test.com" subject "This message has been sent with mremi/flowdock PHP library"
113+
$ bin/flowdock send-team-inbox-message your_flow_api_token source "test@test.com" subject "This message has been sent with php-censor/flowdock-client PHP library"
121114
```
122115

123116
Some options are available:
124117

125118
```bash
126-
$ bin/flowdock send-team-inbox-message your_flow_api_token source "from.mremi@test.com" subject "This message has been sent with mremi/flowdock PHP library" --from-name=mremi --reply-to="to.mremi@test.com" --project=project --format=html --link="http://www.flowdock.com/" --tags="#hello" --tags="#world" --options='{"connect_timeout":1,"timeout":1}'
119+
$ bin/flowdock send-team-inbox-message your_flow_api_token source "test@test.com" subject "This message has been sent with php-censor/flowdock-client PHP library" --from-name=php-censor --reply-to="test@test.com" --project=project --format=html --link="http://www.flowdock.com/" --tags="#hello" --tags="#world" --options='{"connect_timeout":1,"timeout":1}'
127120
```
128121

129122
...and more features coming soon...
@@ -138,5 +131,3 @@ A feature is missing here? Feel free to create a pull request to solve it!
138131

139132
I hope this has been useful and has helped you. If so, share it and recommend
140133
it! :)
141-
142-
[@mremitsme](https://twitter.com/mremitsme)

bin/flowdock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ use Symfony\Component\Console\Application;
1111

1212
$application = new Application;
1313

14-
foreach (glob(__DIR__.'/../src/Mremi/Flowdock/Command/*Command.php') as $command) {
15-
$class = sprintf('Mremi\Flowdock\Command\%s', rtrim(basename($command), '.php'));
14+
foreach (glob(__DIR__.'/../src/Command/*Command.php') as $command) {
15+
$class = sprintf('FlowdockClient\Command\%s', rtrim(basename($command), '.php'));
1616

1717
$application->add(new $class);
1818
}

composer.json

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
{
2-
"name": "mremi/flowdock",
2+
"name": "php-censor/flowdock-client",
33
"type": "library",
44
"description": "A PHP library to interact with the Flowdock API",
55
"keywords": ["flowdock", "api"],
6-
"homepage": "https://github.com/mremi/Flowdock",
6+
"homepage": "https://github.com/php-censor/flowdock-client",
77
"license": "MIT",
88
"authors": [
99
{
10-
"name": "Rémi Marseille",
11-
"email": "[email protected]"
10+
"name": "Dmitry Khomutov",
11+
"email": "[email protected]",
12+
"homepage": "http://corpsee.com",
13+
"role": "Flowdock Client developer"
14+
},
15+
{
16+
"name": "Rémi Marseille",
17+
"email": "[email protected]",
18+
"role": "Flowdock developer"
1219
}
1320
],
1421
"require": {
@@ -21,6 +28,13 @@
2128
"phpunit/phpunit": "~4.1"
2229
},
2330
"autoload": {
24-
"psr-0": { "Mremi\\Flowdock": "src", "Mremi\\Flowdock\\Tests": "tests/" }
31+
"psr-4": {
32+
"FlowdockClient\\": "src"
33+
}
34+
},
35+
"autoload-dev": {
36+
"psr-4": {
37+
"FlowdockClient\\Tests\\": "tests/src"
38+
}
2539
}
2640
}

src/Mremi/Flowdock/Api/Push/BaseMessage.php renamed to src/Api/Push/BaseMessage.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
<?php
22

33
/*
4-
* This file is part of the Mremi\Flowdock library.
5-
*
64
* (c) Rémi Marseille <[email protected]>
75
*
86
* For the full copyright and license information, please view the LICENSE
97
* file that was distributed with this source code.
108
*/
119

12-
namespace Mremi\Flowdock\Api\Push;
10+
namespace FlowdockClient\Api\Push;
1311

1412
use Psr\Http\Message\ResponseInterface;
1513

src/Mremi/Flowdock/Api/Push/BaseMessageInterface.php renamed to src/Api/Push/BaseMessageInterface.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
<?php
22

33
/*
4-
* This file is part of the Mremi\Flowdock library.
5-
*
64
* (c) Rémi Marseille <[email protected]>
75
*
86
* For the full copyright and license information, please view the LICENSE
97
* file that was distributed with this source code.
108
*/
119

12-
namespace Mremi\Flowdock\Api\Push;
10+
namespace FlowdockClient\Api\Push;
1311

1412
use Psr\Http\Message\ResponseInterface;
1513

src/Mremi/Flowdock/Api/Push/ChatMessage.php renamed to src/Api/Push/ChatMessage.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
<?php
22

33
/*
4-
* This file is part of the Mremi\Flowdock library.
5-
*
64
* (c) Rémi Marseille <[email protected]>
75
*
86
* For the full copyright and license information, please view the LICENSE
97
* file that was distributed with this source code.
108
*/
119

12-
namespace Mremi\Flowdock\Api\Push;
10+
namespace FlowdockClient\Api\Push;
1311

1412
/**
1513
* Chat message class

src/Mremi/Flowdock/Api/Push/ChatMessageInterface.php renamed to src/Api/Push/ChatMessageInterface.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
<?php
22

33
/*
4-
* This file is part of the Mremi\Flowdock library.
5-
*
64
* (c) Rémi Marseille <[email protected]>
75
*
86
* For the full copyright and license information, please view the LICENSE
97
* file that was distributed with this source code.
108
*/
119

12-
namespace Mremi\Flowdock\Api\Push;
10+
namespace FlowdockClient\Api\Push;
1311

1412
/**
1513
* Chat message interface

src/Mremi/Flowdock/Api/Push/Push.php renamed to src/Api/Push/Push.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
<?php
22

33
/*
4-
* This file is part of the Mremi\Flowdock library.
5-
*
64
* (c) Rémi Marseille <[email protected]>
75
*
86
* For the full copyright and license information, please view the LICENSE
97
* file that was distributed with this source code.
108
*/
119

12-
namespace Mremi\Flowdock\Api\Push;
10+
namespace FlowdockClient\Api\Push;
1311

1412
use GuzzleHttp\Client;
1513

src/Mremi/Flowdock/Api/Push/PushInterface.php renamed to src/Api/Push/PushInterface.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
<?php
22

33
/*
4-
* This file is part of the Mremi\Flowdock library.
5-
*
64
* (c) Rémi Marseille <[email protected]>
75
*
86
* For the full copyright and license information, please view the LICENSE
97
* file that was distributed with this source code.
108
*/
119

12-
namespace Mremi\Flowdock\Api\Push;
10+
namespace FlowdockClient\Api\Push;
1311

1412
/**
1513
* Push interface

0 commit comments

Comments
 (0)