Download the PHP package amalfra/supportbee without Composer

On this page you can find all versions of the php package amalfra/supportbee. 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 supportbee

SupportBee API

GitHub release Build Status Coverage Status

A PHP wrapper for the SupportBee REST API.

You can find your API token in Settings > API Token screen. See https://developers.supportbee.com/api for more.

Installation

In your project root, run the following:

This will create a vendor directory (if you dont already have one), and set up the autoloading classmap.

Usage

Once everything is installed, you should be able to load the composer autoloader in your code.

You can load the wrapper classes using namespace as:

Now create a new object

At this stage you can also supply the configuration parameter token, company which is used throughout the API. These can be passed directly as array:

Now the available API calls can be done using the instance. All the result from API will be returned as associative array. If any status code other than 200 is returned an exception would be thrown.

Available API methods

Please refer to https://developers.supportbee.com/api for avaialble parameter details.

Incase of multiple paramters : Pass as an associative array. All method names follow Camel Casing.

Tickets

  1. tickets - Returns 15 tickets of the company in the order of their last activity. Only tickets that are not archived are returned (please see optional parameters to get archived tickets).
  2. ticket - Retrieves the ticket specified by the id.
  3. searchTickets - Returns 15 tickets of the company in the order of their last activity matching the search query.
  4. createTicket - Creates a ticket for the company. Pass the information for ticket as associative array.
  5. deleteTicket - Deletes a trashed ticket. Only Admins can delete a trashed ticket.
  6. archiveTicket - Archives an unarchived ticket.
  7. unarchiveTicket - Un-archives an archived ticket.
  8. assignTicket - Assign a ticket to a User or Group. The first paramter is the ticket id. The second paramter is an associative arry with index as user_id if the ticket is to be assigned to an user and group_id if the ticket is to be assigned to a group.
  9. starTicket - Stars an un-starred ticket.
  10. unstarTicket - Un-stars a starred ticket.
  11. spamTicket - Spam's an un-spammed ticket.
  12. unspamTicket - Un-spam a spammed ticket.
  13. trashTicket - Trashes an un-trashed ticket.
  14. untrashTicket - Un-trashes a trashed ticket.
  15. addLabelToTicket - Adds label to ticket. You can pass the ticket_id and label name as parameters.
  16. removeLabelFromTicket - Removes label from ticket. You can pass the ticket_id and label name as parameters.

Replies

  1. replies - Retrieves all the replies of the ticket with id ticket_id.
  2. reply - Retrieves the reply for ticket specified by the ticket_id with id.

Comments

  1. comments - Retrieves all the comments of the ticket with id ticket_id.
  2. createComment - Create a comment to the ticket with id ticket_id. Pass the information for comment as associative array in second parameter.

Agents

  1. agents - Retrieves all confirmed agents of the company.
  2. agent - Retrieves the agent for company specified by the id.

Labels

  1. labels - Retrieves all the custom labels of a company.

Groups

  1. groups - Retrieves all the groups of the company.

Snippets

  1. snippets - Returns all the snippets of the company.

WebHooks

  1. webhooks - Returns all the web hooks of the company.

Reports

  1. avgFirstResponseTimeReport - Returns data points for average first response time.
  2. ticketsCountReport - Returns data points for tickets count.
  3. repliesCountReport - Returns data points for replies count.

Emails

  1. emails - Returns all the emails of the company.
  2. createEmail - Creates an email for the company. Pass the information for email as associative array in second parameter.

Development

Questions, problems or suggestions? Please post them on the issue tracker.

You can contribute changes by forking the project and submitting a pull request. You can ensure the tests are passing by running vendor/bin/phpunit. Feel free to contribute :heart_eyes:

UNDER MIT LICENSE

The MIT License (MIT)

Copyright (c) 2014 Amal Francis

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


All versions of supportbee with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4.0
rmccue/requests Version ^2.0
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 amalfra/supportbee contains the following files

Loading the files please wait ....