-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrading vendor directory; releasing beta.5
- Loading branch information
1 parent
cc40ad6
commit 1d60b10
Showing
593 changed files
with
24,068 additions
and
31,184 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../symfony/var-dumper/Resources/bin/var-dump-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,10 @@ | |
[](https://rauchg-slackin-jtdkltstsj.now.sh) | ||
[](https://packagist.org/packages/botman/botman) | ||
|
||
[](https://phppackagedevelopment.com) | ||
|
||
If you want to learn how to create reusable PHP packages yourself, take a look at my upcoming [PHP Package Development](https://phppackagedevelopment.com) video course. | ||
|
||
## About BotMan | ||
|
||
BotMan is a framework agnostic PHP library that is designed to simplify the task of developing innovative bots for multiple messaging platforms, including [Slack](https://slack.com), [Telegram](https://telegram.org), [Microsoft Bot Framework](https://dev.botframework.com), [Nexmo](https://www.nexmo.com), [HipChat](https://www.hipchat.com), [Facebook Messenger](https://www.messenger.com) and [WeChat](https://web.wechat.com). | ||
|
@@ -20,6 +24,8 @@ $botman->hears('I want cross-platform bots with PHP!', function (BotMan $bot) { | |
}); | ||
``` | ||
|
||
> If you want to learn how to create reusable PHP packages yourself, take a look at my upcoming [PHP Package Development](https://phppackagedevelopment.com) video course. | ||
## Documentation | ||
|
||
You can find the BotMan documentation at [https://botman.io](https://botman.io). | ||
|
@@ -35,6 +41,15 @@ You can find the BotMan documentation at [https://botman.io](https://botman.io). | |
|
||
Please see [CONTRIBUTING](CONTRIBUTING.md) for details. | ||
|
||
[](https://sourcerer.io/fame/sergey48k/botman/botman/links/0) | ||
[](https://sourcerer.io/fame/sergey48k/botman/botman/links/1) | ||
[](https://sourcerer.io/fame/sergey48k/botman/botman/links/2) | ||
[](https://sourcerer.io/fame/sergey48k/botman/botman/links/3) | ||
[](https://sourcerer.io/fame/sergey48k/botman/botman/links/4) | ||
[](https://sourcerer.io/fame/sergey48k/botman/botman/links/5) | ||
[](https://sourcerer.io/fame/sergey48k/botman/botman/links/6) | ||
[](https://sourcerer.io/fame/sergey48k/botman/botman/links/7) | ||
|
||
## Security Vulnerabilities | ||
|
||
If you discover a security vulnerability within BotMan, please send an e-mail to Marcel Pociot at [email protected]. All security vulnerabilities will be promptly addressed. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
118 changes: 118 additions & 0 deletions
118
vendor/botman/botman/src/Messages/Attachments/Contact.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
<?php | ||
|
||
namespace BotMan\BotMan\Messages\Attachments; | ||
|
||
class Contact extends Attachment | ||
{ | ||
/** | ||
* Pattern that messages use to identify contact attachment. | ||
*/ | ||
const PATTERN = '%%%_CONTACT_%%%'; | ||
|
||
/** @var string */ | ||
protected $phone_number; | ||
|
||
/** @var string */ | ||
protected $first_name; | ||
|
||
/** @var string */ | ||
protected $last_name; | ||
|
||
/** @var string */ | ||
protected $user_id; | ||
|
||
/** @var string */ | ||
protected $vcard; | ||
|
||
/** | ||
* Message constructor. | ||
* | ||
* @param string $phone_number | ||
* @param string $first_name | ||
* @param string $last_name | ||
* @param string $user_id | ||
* @param string $vcard | ||
* @param mixed $payload | ||
*/ | ||
public function __construct($phone_number, $first_name, $last_name, $user_id, $vcard = null, $payload = null) | ||
{ | ||
parent::__construct($payload); | ||
$this->phone_number = $phone_number; | ||
$this->first_name = $first_name; | ||
$this->last_name = $last_name; | ||
$this->user_id = $user_id; | ||
$this->vcard = $vcard; | ||
} | ||
|
||
/** | ||
* @param string $phone_number | ||
* @param string $first_name | ||
* @param string $last_name | ||
* @param string $user_id | ||
* @param string $vcard | ||
* | ||
* @return Contact | ||
*/ | ||
public static function create($phone_number, $first_name, $last_name, $user_id, $vcard = null) | ||
{ | ||
return new self($phone_number, $first_name, $last_name, $user_id, $vcard); | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getPhoneNumber() | ||
{ | ||
return $this->phone_number; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getFirstName() | ||
{ | ||
return $this->first_name; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getLastName() | ||
{ | ||
return $this->last_name; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getUserId() | ||
{ | ||
return $this->user_id; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getVcard() | ||
{ | ||
return $this->vcard; | ||
} | ||
|
||
/** | ||
* Get the instance as a web accessible array. | ||
* This will be used within the WebDriver. | ||
* | ||
* @return array | ||
*/ | ||
public function toWebDriver() | ||
{ | ||
return [ | ||
'type' => 'contact', | ||
'phone_number' => $this->phone_number, | ||
'first_name' => $this->first_name, | ||
'last_name' => $this->last_name, | ||
'user_id' => $this->user_id, | ||
'vcard' => $this->vcard, | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
vendor/botman/driver-facebook/src/Events/MessagingAccountLinking.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace BotMan\Drivers\Facebook\Events; | ||
|
||
class MessagingAccountLinking extends FacebookEvent | ||
{ | ||
/** | ||
* Return the event name to match. | ||
* | ||
* @return string | ||
*/ | ||
public function getName() | ||
{ | ||
return 'messaging_account_linking'; | ||
} | ||
} |
Oops, something went wrong.