Download the PHP package wearesho-team/phonet without Composer
On this page you can find all versions of the php package wearesho-team/phonet. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package phonet
Phonet Api integration
You can receive original docs on phonet site
Installation
Configuration
Exist two implementation of configurations:
- Config - custom config
- EnvironmentConfig - based on Horatius\Environment\Config
Available environment variables:
variable | required | description |
---|---|---|
PHONET_DOMAIN | Yes | Domain name of your cms\system |
PHONET_API_KEY | Yes | Special api key that ypu can receive in your Phonet account |
Use ConfigInterface to create your custom config
Usage
Provider
To use Phonet api you must authorize to service. For this exist Authorization\ProviderInterface
If You want cache your auth data use CacheProvider;
Sender
All api methods used Sender
Service
makeCall(string $operatorInternalNumber, string $targetNumber): string
Start new call and return unique uuid of it.
hangupCall(string $uuid): void
End a call / conversation by unique uuid
Repository
Repository contains methods for searching data in Phonet Service.
activeCalls()
param | value |
---|---|
Return type | Call\Active\Collection |
Arguments | - |
Returns collection of calls that currently taking place.
missedCalls(...)
param | value |
---|---|
Return type | Call\Complete\Collection |
Arguments | $from, $to, $directions, $limit, $offset |
Returns a collection of calls to call back.
companyCalls(...)
param | value |
---|---|
Return type | Call\Complete\Collection |
Arguments | $from, $to, $directions, $limit, $offset |
Returns a collection of calls made by the company.
usersCalls()
param | value |
---|---|
Return type | Call\Complete\Collection |
Arguments | $from, $to, $directions, $limit, $offset |
Returns a collection of calls made by employees.
users()
param | value |
---|---|
Return type | Employee\Collection |
Arguments | - |
Returns a collection of employees of company.
Authors
- Roman Varkuta
License
MIT
All versions of phonet with dependencies
ext-json Version *
guzzlehttp/guzzle Version ^6.3
horat1us/environment-config Version ^1.3
myclabs/php-enum Version ^1.6
nesbot/carbon Version ^1.36
psr/simple-cache Version ^1.0
wearesho-team/base-collection Version ^1.0