Download the PHP package socheatsok78/manychat-block-sdk without Composer

On this page you can find all versions of the php package socheatsok78/manychat-block-sdk. 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 manychat-block-sdk

ManyChat Block SDK (:warning: Unofficial)

Send any message block, like text, gallery, list and others. Attach buttons with custom payloads to continue interaction.

Trigger actions in ManyChat, like tagging a user, setting a Custom Field or notifying an admin.

:warning: This is an Unofficial SDK, Use at your own risk!

packagist packagist

Example code:

Example response:

Installation

Require socheatsok78/manychat-block-sdk package to your project

or edit composer.json

Check latest release here. See CHANGELOG.md for release notes.

Contents

Additional Documents

:rotating_light: Limitations

Dynamic block has a limit to have not more than 10 messages in messages block, 11 quick replies and 5 actions.

Type Limit
Messages 10
Actions 5
Quick Replies 11
Buttons 3

Messages

Create a message block like Text, List or Card.

Note: A message can add up to 3 Button block, any thing more than that ManyChat will not show your response

Text

Create a Text message block for sending text messages.

The Url, Flow, Node and Call buttons can be used with Text block.

List

Create a list message block, a set of items vertically. There are two types of list CompactList and LargeList.

The Url, Flow, Node, Call and Buy buttons can be used with List block.

Note: We strongly suggest to use HTTPS protocol for your URLs

Warning: :warning: Vertical List will be deprecated by Facebook and will be rendered as a Card

Card

Create a horizontal scrollable gallery. There are two types of card SquareCard and HorizontalCard.

The Url, Flow, Node, Call and Buy buttons can be used with Card block.

Note: We strongly suggest to use HTTPS protocol for your URLs

Element

Create a element block. It can only be used on List or Card block.

The Call, Url, Buy, Node and Flow buttons can be used with Element block.

Note: We strongly suggest to use HTTPS protocol for your URLs

Attachments

Create a attachment block like File, Image, Audio and Video.

File

Create a file block to send any other files, which are no larger than 25 MB.

Note: We strongly suggest to use HTTPS protocol for your URLs

Image

Create an image block to send an image. Image supports JPG, PNG and GIF images.

The Call, Url, Buy, Node and Flow buttons can be used with Element block.

Note: We strongly suggest to use HTTPS protocol for your URLs

Audio

Create an audio block send audio files, which are no larger than 25 MB.

The Call, Url, Buy, Node and Flow buttons can be used with Element block.

Note: We strongly suggest to use HTTPS protocol for your URLs

Video

Create an video block send video files, which are no larger than 25 MB.

The Call, Url, Buy, Node and Flow buttons can be used with Element block.

Note: We strongly suggest to use HTTPS protocol for your URLs

Buttons

Create a button block like Call, Url, Buy, Node and Flow.

You can provide custom Action to be performed with the button. Actions can be attached to Url, Flow and Node button types.

Call

Create a call button block.

Url

Create a url button block.

Note: We strongly suggest to use HTTPS protocol for your URLs

Url has 3 style options:

Buy

Create a buy button block.

You can configure the Buy button payment option check the code below.

Node

Create a node button block to link with existing flow.

Node name can be found in its header, you need to use unique name for node connected with link. If there are multiple nodes with similar names inside of the same flow, transition behaviour would not meet expectations.

Flow

Create a flow button block. Flow block are like Node block, but Flow uses id of a Node or Flow.

The id can be found in the address bar when you're editing the node/flow.

Example node/flow url:

Actions

You can attach actions to Chat, Message, Attachment or Button object.

There are only 2 type of actions Tag and Custom Field.

Note: The $object can be Chat, Message, Attachment or Button object.

Add Tag

Add a tag to a subscriber

Remove Tag

Remove a tag from a subscriber

Add Custom Field

Add a custom field to a subscriber

Remove Custom Field

Remove a custom field from a subscriber

Quick Reply

Create a quick reply block. Quick Reply can only be attached to Chat object.

The Node, Flow buttons and DynamicBlock callback can be used with Quick Reply block.

Dynamic Block

Create a Dynamic Block callback.

Note: We strongly suggest to use HTTPS protocol for your URLs

External Callback

You can ask ManyChat to handle the next subscriber’s message on your side by using the ExternalCallback block.

Note: Only one callback can be attached to Chat object.

Trademark

Logos, service marks and trade names are trademark of ManyChat, Inc.

License

This package is an Unofficial SDK licensed under the MIT


All versions of manychat-block-sdk with dependencies

PHP Build Version
Package Version
No informations.
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 socheatsok78/manychat-block-sdk contains the following files

Loading the files please wait ....