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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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

  1. domain - application url e.g.(https://github.com).
  2. name - application name.
  3. team_name - name of your support team.
  4. user_model_class - User model path. Then implement OnixSystemsPHP\HyperfSupport\Contract\SupportUserInterface contract in the model class.

Configure integrations.trello

  1. key - API Key. (You may find it here: https://trello.com/power-ups/admin)
  2. token - Authorization token.
  3. webhook_url - app.domain + /v1/support/webhooks/trello.
  4. board_name - Trello board name.
  5. members - For each type of ticket specify members which should be attached to the card on Trello.
  6. lists - Specify mapping for each status of ticket with corresponding list on Trello.
  7. custom_fields - Determine which custom fields should be on card on Trello.
  8. trigger_lists - Specify trigger lists on Trello. These lists determine whether to notify users if the ticket moved in one of these lists.
  9. is_private_discussion - This option must be true or false. If true, discussion under the ticket on Trello will be private and anyone can see it except on Trello.
  10. keys_to_source - Specify your_api_username => your_source.

Configure integrations.slack

  1. token - Bot Authorization key.
  2. channel_id - Slack channel id.
  3. Don't forget to enable subscriptions for your Slack bot and specify request URL: app.domain + /v1/support/webhooks/trello.
  4. app_icon - Your application's icon url. e.g.
  5. members - For each type of ticket specify members which should be mentioned on Slack ticket. Without '@'.
  6. custom_fields - Determine which custom fields should be showed on Slack ticket.
  7. is_private_discussion - This option must be true or false. If true, discussion under the ticket on Slack will be private and anyone can see it except on Slack.
  8. keys_to_source - Specify your_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

PHP Build Version
Package Version
Requires php Version >=8.1
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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package onix-systems-php/hyperf-support contains the following files

Loading the files please wait ....