Download the PHP package estey/hipsupport without Composer

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

HipSupport

Latest Stable Version Build Status Coverage Status

This project is no longer being actively updated.

HipSupport is a Laravel 4.2 package that facilitates the creation of a live chat support system ontop of HipChat's API. If you are already using Laravel 4.2 and HipChat, then you can have a fully functional live chat system up and running in minutes.

How it Works

HipChat released a jQuery HipChat Plugin that allows users to embed a HipChat Web Client into their web pages so that users can now access public chat rooms anonymously. HipSupport uses HipChat's API to dynamically create a new public chat room for each incoming chat request and send a notification to your company's users of this new chat session. From there, your company's users can join the room and chat with the user.

HipChat Embedded Chat Client

Installation

Install this package through Composer by editing your project's composer.json file to require estey/hipsupport.

Then, update Composer:

Open app/config/app.php, and add the service provider to the providers array:

Add the facade to the aliases array at the bottom of app/config/app.php.

Configuration

To publish the configuration file, run:

The config file will be located at app/config/packages/estey/hipsupport/config.php. An Admin token is required in the token field and a user with access to add rooms is required in the owner_user_id field.

The room_name format should be something unique and by default appends Y-m-d H:m to the end of the Room name.

Or you can leave this blank and assign it at runtime with whatever you want. Like the user's IP Address or whatever. If a room name already exists then a number will be appended to the end of the name. (This comes at the cost of an extra API request, so be mindful of that. See the Limitations section for more details.)

To send notifications, you must define the room_id in the notification array. If the room_id is null then no notification will be sent.

Artisan Commands

There are two Artisan commands to help you get started. php artisan hipsupport:online and php artisan hipsupport:offline. These two commands take your live chat online and.. offline. Online accepts a parameter to define how many minutes to bring HipSupport online.

The above command will bring HipSupport online for 8 hours. That way you don't have to remember to turn it off. Check if HipSupport is online using the HipSupport::isOnline() method.

Quickstart

To create an absolute basic installation, create a route to handle your incoming chat requests. If HipSupport is Offline then HipSupport::init() will return false.

In your view, add a form to post into your chat route when HipSupport is online.

By using JavaScript, you can open the chat up on an iFrame, in an iFrame inside a modal, or open the chat in a new window. The chat screen is simple and automatically resizes to the size of its container. To handle an ajax request, your route would look something like this:

Named Users

HipChat's API doesn't currently provide a way to name Guests. If you pass HipSupport::init(array('anonymous' => false)) then HipChat will prompt the user to enter there name, but the page is kind of clunky, isn't responsive and kills the illusion of a live chat system. Alternatively, you can add a form and a layer of validation in front of the HipSupport::init() method and pass the user's inputs into the room_name and notification message. You can even save the user's data (User ID, Name, Email, etc) in your database associated to the chat's room_id so that you can attribute the chat history to specific users.

Here's an example of an extremely basic validation.

Limitations

HipChat's API currently limits API requests to 100 requests per 5 minutes. Each HipSupport::init() call eats 3 requests (check if room name exists, create room and notify room). Read more on HipChat's rate limiting.

Too Many Rooms!

It's probably a good idea to adopt some form of consistent naming of dynamically created rooms. In the next version of HipSupport I plan on added some more Artisan commands to help mass delete or mass archive rooms that have been inactive for a specified amount of time and whose room name contains a given string.

License

The MIT License (MIT). Please see License File for more information.


All versions of hipsupport with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
illuminate/support Version 4.*
illuminate/cache Version 4.*
illuminate/config Version 4.*
hipchat/hipchat-php Version 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 estey/hipsupport contains the following files

Loading the files please wait ....