Download the PHP package sm9sh/botman-bundle without Composer

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

BotMan Bundle

BotMan integration for Symfony

This is a bundle to use BotMan framework in Symfony.

Supported drivers

Only the marked drivers are supported. See the official driver documentation to have more information:

Installation

Step 1: Download the bundle

Install the library via Composer by running the following command:

Step 2: Enable the bundle

You can skip this step if you are using Symfony Flex.

Enable the bundle in your app/AppKernel.php file:

Step 3: Configure the bundle

You can see a template of config file by running console config:dump-reference botman.

You only must add the drivers than you want to use.

Step 4: Configure the webhook

Add the router configuration for the webhook in your routing.yaml:

The webhook path is /botman by default, but we recommend to change it by security issues.

Now, you must create the webhook controller class. By default is configured as App\Controller\WebhookController:

If you want to change the controller class or you are not using Symfony Flex, you will need to specify the controller class in the config file:

To know more about how to listen or send messages read the official documentation.

Services

This bundle configure the Symfony container in the BotMan instance. So, you can inject dependencies via constructor in Conversations classes.

In you want to use BotMan instance in your services, you can inject BotMan\BotMan\BotMan class or botman alias.

Drivers command

Some driver will have commands to help to configure it:

Facebook

The next commands are available:

Command Description
botman:facebook:greeting Configure greeting message from driver configuration
botman:facebook:info Retrieve the current values of Messenger Profile Properties
botman:facebook:start-button Configure Messenger Get started button from driver configuration
botman:facebook:whitelist-domains Configure Messenger whitelisted domains from driver configuration

Telegram

Command Description
botman:telegram:info Retrieve the current values of Telegram bot and its webhook status
botman:telegram:webhook Configure the system webhook to be used by Telegram bot

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository. However, this project is in very alpha status and config file format can change very quickly.

License

This project is licensed under the MIT License - see the LICENSE.md file for details


All versions of botman-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2|^8.1
ext-curl Version *
ext-json Version *
botman/botman Version ^2.4
php-http/client-common Version ^2.5
php-http/client-implementation Version ^1.0
symfony/cache Version ^3.4|^4.0|^6.0
symfony/config Version ^3.4|^4.0|^6.0
symfony/console Version ^3.4|^4.0|^6.0
symfony/dependency-injection Version ^3.4|^4.0|^6.0
symfony/http-foundation Version ^3.4|^4.0|^6.0
symfony/http-kernel Version ^3.4|^4.0|^6.0
symfony/routing Version ^3.4|^4.0|^6.0
tightenco/collect Version ^5.6
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 sm9sh/botman-bundle contains the following files

Loading the files please wait ....