Download the PHP package slack-php/slick without Composer

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

Slick (by slack-php)

A slick, single-file, dependency-free PHP micro-framework for building simple Slack apps.

For something more robust, you should use our fully-featured Slack PHP Framework.

If you are new to Slack app development, you will want to learn about it on Slack's website.

Installation

Requirements

Requires PHP 7.3+ with JSON support.

Via Composer

We recommend using Composer to install Slick, so that autoloading and keeping it up-to-date are easy.

Manual

However, since Slick has no dependencies, you can directly download and require Slick.php or copy & paste the code directly into your project.

(If you do end up doing this, let me know, because I will have no other way to track that it's happening.)

Basic Usage

This small app responds to the /cool slash command by posting a message back to the conversation where the slack command was used.

Assumptions:

  • You have required the Composer autoloader to autoload Slick, OR you have required Slick.php directly.
  • You have SLACK_SIGNING_KEY set in your environment such that it is present in $_SERVER.

Want to run this example in your workspace? Check out the Example App using Docker.

Breaking It Down

Let's add some comments to that last example, so you know what is going on.

Customization

There isn't much to customize, but you can control the behavior of your Slick Slack app when:

  1. The incoming request doesn't match one of your routes (on404()).
  2. An error occurs while processing the incoming request (orErr()).

Helper Functions

If you want to do your own request handling, Slick provides some static helper methods that you can use independent from the routing features.


All versions of slick with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
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 slack-php/slick contains the following files

Loading the files please wait ....