Download the PHP package jspaetzel/groupme without Composer
On this page you can find all versions of the php package jspaetzel/groupme. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jspaetzel/groupme
More information about jspaetzel/groupme
Files in jspaetzel/groupme
Download jspaetzel/groupme
More information about jspaetzel/groupme
Files in jspaetzel/groupme
Vendor jspaetzel
Package groupme
Short Description Groupme Library for PHP
License MIT
Homepage https://github.com/jspaetzel/GroupMePHP
Package groupme
Short Description Groupme Library for PHP
License MIT
Homepage https://github.com/jspaetzel/GroupMePHP
Please rate this library. Is it a good library?
Informations about the package groupme
Unofficial PHP Client Library for the GroupMe v3 API
Install with Composer
composer require jspaetzel/groupme
Then use the autoloader to load this library in your code
require './vendor/autoload.php';
Examples
These are some basic examples for how to interact with the api via the library. The APIKEY in these examples is the API key of a user, not a groupme bot key or application key.
For all requests you'll need create a Client
$client = new \GroupMePHP\Client('APIKEY');
Send a message to a group
$message_to_send = "Hello Group!"
$messages_service = new \GroupMePHP\Services\MessagesService($client);
$messages_service->create(12345678, ["THISISAGUID123", $message_to_send]);
Send a direct message to a user
$direct_message_service = new \GroupMePHP\Services\DirectMessagesService($client);
$direct_message_service->create([
"source_guid" => "THISISAGUID123",
"recipient_id" => 12345678,
"text" => 'Hello User'
]);
Get index of groups for authenticated user
$group_service = new \GroupMePHP\Services\GroupsService($client);
$response = $group_service->index();
Get only the members of a group as json
$group_service = new \GroupMePHP\Services\GroupsService($client);
$response = $group_service->show(1234567);
$members = $response['members'];
Want to contribute?
See the contribution guide
All versions of groupme with dependencies
PHP Build Version
Package Version
Requires
ext-curl Version
*
ext-json Version *
php Version >=8.1
ext-json Version *
php Version >=8.1
The package jspaetzel/groupme contains the following files
Loading the files please wait ...