Download the PHP package vluzrmos/slack-api without Composer

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

Laravel e Lumen - Slack API

Join the chat at https://gitter.im/vluzrmos/laravel-slack-api

This package provides a simple way to use Slack API.

Latest Stable Version Total Downloads Latest Unstable Version License

Instalation

composer require vluzrmos/slack-api

Instalation on Laravel

Add to config/app.php:

This package uses auto-discovery laravel's feature, the service provider and all the facades will be automatic discovered.

Service Provider: \Vluzrmos\SlackApi\SlackApiServiceProvider::class

Facades:

Instalation on Lumen

Add that line on bootstrap/app.php:

If you want to use facades, add this lines on bootstrap/app.php

Otherwise, just use the singleton shortcuts:

Slack OAuth Token

To get your slack token, you must create an app on Slack Apps and then give the permissions that you need at your app page on side menu "Features" -> "OAuth & Permissions", and then go to "Scopes" section, the token can be a Bot Token or User Token as you need.

Then re/install the app to your workspace.

Note: If you edit any permission you must reinstall the app to your workspace.

Configuration

Configure your slack team token in config/services.php

By default all api methods will return objects, to change it to associative array first publish slack-api config, and then set response_to_assoc_array to true

Usage

Using Dependency Injection

All Injectable Contracts:

Generic API

Vluzrmos\SlackApi\Contracts\SlackApi

Allows you to do generic requests to the api with the following http verbs: get, post, put, patch, delete ... all allowed api methods you could see here: Slack Web API Methods.

And is also possible load a SlackMethod contract:

Channels API

Vluzrmos\SlackApi\Contracts\SlackChannel

Allows you to operate channels: invite, archive, rename, join, kick, setPurpose ...

Chat API

Vluzrmos\SlackApi\Contracts\SlackChat

Allows you to send, update and delete messages with methods: delete, message, update.

Files API

Vluzrmos\SlackApi\Contracts\SlackFile

Allows you to send, get info, delete, or just list files: info, lists, upload, delete.

Groups API

Vluzrmos\SlackApi\Contracts\SlackGroup

Same methods of the SlackChannel, but that operates with groups and have adicional methods: open, close, createChild

Instant Messages API (Direct Messages)

Vluzrmos\SlackApi\Contracts\SlackInstantMessage

Allows you to manage direct messages to your team members.

Real Time Messages API

Vluzrmos\SlackApi\Contracts\SlackRealTimeMessage

Allows you list all channels and user presence at the moment.

Search API

Vluzrmos\SlackApi\Contracts\SlackSearch

Find messages or files.

Stars API

Vluzrmos\SlackApi\Contracts\SlackStar

List all of starred itens.

Team API

Vluzrmos\SlackApi\Contracts\SlackTeam

Get information about your team.

Users API

Vluzrmos\SlackApi\Contracts\SlackUser

Get information about an user on your team or just check your presence ou status.

Users Admin API

Vluzrmos\SlackApi\Contracts\SlackUserAdmin

Invite new members to your team.

OAuth API

Vluzrmos\SlackApi\Contracts\SlackOAuth

Methods in oauth slack api namespace.

OAuthV2 API

Vluzrmos\SlackApi\Contracts\SlackOAuthV2

Methods in oauth v2 slack api namespace.

License

DBAD License.


All versions of slack-api with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ~6.0 || ~7.0 || ~8.0 || ~9.0|^10.0 || ^11.0
illuminate/cache Version ~6.0 || ~7.0 || ~8.0 || ~9.0|^10.0 || ^11.0
guzzlehttp/guzzle Version ~5.3 || ~6.0 || ~7.0
nesbot/carbon Version 1.* || 2.* || ^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 vluzrmos/slack-api contains the following files

Loading the files please wait ....