Download the PHP package emilh91/groupme-api-client without Composer

On this page you can find all versions of the php package emilh91/groupme-api-client. 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 groupme-api-client

GroupMe API Client

This library is an unofficial PHP wrapper for the GroupMe v3 API.

Installation

Install using Composer: "emilh91/groupme-api-client": "dev-master"

Boilerplate

Your GroupMe API key can be found on the page mentioned above once you are logged in. You do not need to specify an API key if you only plan to use this library for sending bot messages.

Client methods

All the methods in the following sub-sections should be invoked on the newly created client object.

Bot methods
Direct Message methods
Group methods
User methods

Attachments

When sending messages (bot, direct, or group), you can specify an array of attachments. A factory class exists to easily create attachments: GroupMeApi\AttachmentUtils.

Emojis

Aah, the pinnacle of modern communication... To send emojis in GroupMe, you need to specify a charmap (character map) when creating the attachment. For this purpose, another factory class exists: GroupMeApi\EmojiUtils. To send emojis without dealing with charmaps and placeholders, just write them inline and use the parse*Message(...) methods to send them.

Image Service

Before using local images in messages you have to upload an image to GroupMe's image service.

If the upload was successful, the return variable contains the image url in $res['payload']['url'] or an error message in $res['error'][]. Thanks to user rgaida for fixing the image service!


All versions of groupme-api-client with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.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 emilh91/groupme-api-client contains the following files

Loading the files please wait ...