2017 © Pedro PelĂĄez
 

library flowdock

A PHP5 library to interact with the Flowdock API

image

mremi/flowdock

A PHP5 library to interact with the Flowdock API

  • Thursday, January 8, 2015
  • by mremi
  • Repository
  • 2 Watchers
  • 4 Stars
  • 14,371 Installations
  • PHP
  • 2 Dependents
  • 4 Suggesters
  • 2 Forks
  • 1 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

Flowdock library

This library allows you to interact with the Flowdock API., (*1)

SensioLabsInsight, (*2)

Build Status Total Downloads Latest Stable Version Scrutinizer Code Quality Code Coverage, (*3)

Basic Docs, (*4)

, (*5)

Installation

Only 1 step:, (*6)

Download Flowdock using composer

Add Flowdock in your composer.json:, (*7)

{
    "require": {
        "mremi/flowdock": "dev-master"
    }
}

Now tell composer to download the library by running the command:, (*8)

``` bash $ php composer.phar update mremi/flowdock, (*9)


Composer will install the library to your project's `vendor/mremi` directory. <a name="push-api"></a> ## Push API ### Chat ```php <?php use Mremi\Flowdock\Api\Push\ChatMessage; use Mremi\Flowdock\Api\Push\Push; $message = ChatMessage::create() ->setContent('This message has been sent with mremi/flowdock PHP library') ->setExternalUserName('mremi') ->addTag('#hello-world'); $push = new Push('your_flow_api_token'); if (!$push->sendChatMessage($message, array('connect_timeout' => 1, 'timeout' => 1))) { // handle errors... $message->getResponseErrors(); }

You can also do it in your console, look at the help message:, (*10)

$ bin/flowdock send-chat-message --help

Some arguments are mandatory:, (*11)

$ bin/flowdock send-chat-message your_flow_api_token "This message has been sent with mremi/flowdock PHP library" mremi

Some options are available:, (*12)

$ 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}'

Team Inbox

<?php

use Mremi\Flowdock\Api\Push\Push;
use Mremi\Flowdock\Api\Push\TeamInboxMessage;

$message = TeamInboxMessage::create()
    ->setSource('source')
    ->setFromAddress('from.mremi@test.com')
    ->setSubject('subject')
    ->setContent('This message has been sent with mremi/flowdock PHP library');

$push = new Push('your_flow_api_token');

if (!$push->sendTeamInboxMessage($message, array('connect_timeout' => 1, 'timeout' => 1))) {
    // handle errors...
    $message->getResponseErrors();
}

You can also do it in your console, look at the help message:, (*13)

$ bin/flowdock send-team-inbox-message --help

Some arguments are mandatory:, (*14)

$ 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"

Some options are available:, (*15)

$ 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}'

...and more features coming soon..., (*16)

, (*17)

Contribution

Any question or feedback? Open an issue and I will try to reply quickly., (*18)

A feature is missing here? Feel free to create a pull request to solve it!, (*19)

I hope this has been useful and has helped you. If so, share it and recommend it! :), (*20)

@mremitsme, (*21)

The Versions

08/01 2015

dev-master

9999999-dev https://github.com/mremi/Flowdock

A PHP5 library to interact with the Flowdock API

  Sources   Download

MIT

The Requires

 

The Development Requires

by RĂ©mi Marseille

api flowdock

08/01 2015

v1.0.0

1.0.0.0 https://github.com/mremi/Flowdock

A PHP5 library to interact with the Flowdock API

  Sources   Download

MIT

The Requires

 

The Development Requires

by RĂ©mi Marseille

api flowdock