Download the PHP package onix-systems-php/hyperf-support without Composer
On this page you can find all versions of the php package onix-systems-php/hyperf-support. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package hyperf-support
onix-systems-php/hyperf-support
Hyperf-support is a package for fluently managing your tickets and comments within Slack, Trello and other systems. Made by onix-systems-php
Installation:
Publishing the config:
Configuration
Configure app
domain
- application url e.g.(https://github.com).name
- application name.team_name
- name of your support team.user_model_class
- User model path. Then implementOnixSystemsPHP\HyperfSupport\Contract\SupportUserInterface
contract in the model class.
Configure integrations.trello
key
- API Key. (You may find it here: https://trello.com/power-ups/admin)token
- Authorization token.webhook_url
-app.domain
+/v1/support/webhooks/trello
.board_name
- Trello board name.members
- For each type of ticket specify members which should be attached to the card on Trello.lists
- Specify mapping for each status of ticket with corresponding list on Trello.custom_fields
- Determine which custom fields should be on card on Trello.trigger_lists
- Specify trigger lists on Trello. These lists determine whether to notify users if the ticket moved in one of these lists.is_private_discussion
- This option must betrue
orfalse
. Iftrue
, discussion under the ticket on Trello will be private and anyone can see it except on Trello.keys_to_source
- Specifyyour_api_username
=>your_source
.
Configure integrations.slack
token
- Bot Authorization key.channel_id
- Slack channel id.- Don't forget to enable subscriptions for your Slack bot and specify request URL:
app.domain
+/v1/support/webhooks/trello
. app_icon
- Your application's icon url. e.g.members
- For each type of ticket specify members which should be mentioned on Slack ticket. Without '@'.custom_fields
- Determine which custom fields should be showed on Slack ticket.is_private_discussion
- This option must betrue
orfalse
. Iftrue
, discussion under the ticket on Slack will be private and anyone can see it except on Slack.keys_to_source
- Specifyyour_slack_channel_id
=>your_source
.
Configure routes
require_once './vendor/onix-systems-php/hyperf-support/publish/routes.php';
Basic Usage
Creating simple ticket:
Try to send this JSON
to /v1/support/tickets
via POST
method.
You should get something like this object:
Finally, it should appear on Slack and Trello.
Creating ticket with files:
Logic the same as for creating simple ticket, but you need to pass array with files' IDs:
Finally, the ticket should appear on Slack and Trello with attached files.
Updating ticket on Trello.
Once the ticket.done_status
is "Done" everytime when ticket moved to Done list on Trello the ticket will be marked as "completed".
All versions of hyperf-support with dependencies
hyperf/framework Version ^3.1.42
onix-systems-php/hyperf-core Version >=1.2.5
hyperf/di Version >=3.1.52
onix-systems-php/hyperf-actions-log Version ^1.2.1
hyperf/guzzle Version ^3.1.42
friendsofhyperf/helpers Version ^3.1.57
onix-systems-php/hyperf-file-upload Version ^1.3
zircote/swagger-php Version ^4.11.1