Download the PHP package laravel-notification-channels/webex without Composer

On this page you can find all versions of the php package laravel-notification-channels/webex. 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 webex

Webex Notifications Channel for Laravel

Latest Version on Packagist Build Status Total Downloads

This package makes it easy to send notifications using Webex with Laravel 10 and 11.

Contents

Installation

To use this package, you need to add it as a dependency to your project and provide the necessary configuration.

Install the package using Composer

Pull in and manage the Webex notifications package easily with Composer:

Add service configuration for Webex

You will also need to include a Webex service configuration to your application. To do this, edit the config/services.php file, and add the following, or if the webex key already exists, merge:

Use the WEBEX_NOTIFICATION_CHANNEL_ID and WEBEX_NOTIFICATION_CHANNEL_TOKEN environment variables to define your Webex ID and Token. One way to get these values is by creating a new Webex Bot.

Usage

If you are new to Laravel Notification, I highly recommend reading the official documentation which goes over the basics of generating and sending notifications. The guide below assumes that you have successfully generated a notification class with a via method whose return value includes 'webex' or NotificationChannels\Webex\WebexChannel::class. For example:

To send notifications on Webex, define a toWebex method on the notification class and a routeNotificationForWebex method on the notifiable entity. These steps are discussed below.

Formatting Webex Notifications

If a notification supports being sent as a Webex message, you should define a toWebex method on the notification class. This method will receive a $notifiable entity and should return a \NotificationChannels\Webex\WebexMessage instance. Webex messages may contain text content as well as at most one file or an attachment ( for buttons and cards).

Plain Text Message

Let's take a look at a basic toWebex example, which we could add to our InvoicePaid class above.

Preview on (https://web.webex.com)

Rich Text Message

Send a rich text notification message formatted using the Markdown markup language via markdown method.

Preview on (https://web.webex.com)

Replying to a Parent Message

Reply to a parent message and start or advance a thread via the parentId method.

Preview on (https://web.webex.com)

Including a File

A notification message can have at most one file that you can include via the file helper method. When calling the file method, you should provide the path of the file. The file path could be local or of the form "scheme://...", that is accessible to your application. Optionally, you can also provide a name and MIME type to display on Webex clients.

Preview on (https://web.webex.com)

[!NOTE]

  • Including multiple files in the same message is not supported by the file helper.
  • Including file and attachment in the same message is not supported by the file helper.
  • For supported MIME types and file size limits, please refer Webex HTTP API documentation.

Including an Attachment

A notification message can have at most one attachment that you can include via the attachment helper method. When calling the attachment method, you should provide the content of the attachment. The attachment content must be a PHP array representation for an adaptive card. Optionally, you can also provide a content type.

Preview on (https://web.webex.com)

[!NOTE]

  • Including multiple attachments in the same message is not supported by the attachment helper.
  • Including attachment and file in the same message is not supported by the attachment helper.
  • For supported attachment types, please refer Webex HTTP API documentation.

Room/Space Linking

To Link to a room/space use its Webex protocol handler, i.e. webexteams://im?space=<space_id>.

Preview on (https://web.webex.com)

User and Group Mentions

To mention someone in a group room/space use their registered Webex email address or Webex HTTP API identifier as shown below.

Preview on (https://web.webex.com)

To mention everyone in a group room/space, use the <@all> tag.

Preview on (https://web.webex.com)

Routing Webex Notifications

To route Webex notifications to the proper Webex user or room/space, define a routeNotificationForWebex method on your notifiable entity. This should return a Webex registered email address or a Webex HTTP API resource identifier for a user or room/space to which the notification should be delivered.

Available Methods

All messaging classes are under the \NotificationChannels\Webex namespace.

Webex Message Methods

Public methods of the WebexMessage class:

Webex Message File Methods

Public methods of the WebexMessageAttachment class:

Webex Message Attachment Methods

Public methods of the WebexMessageFile class:

Interface Method Implementations

In addition, there are some methods available for transforming Webex messaging instances that are used internally for creating the request payload to Webex HTTP API:

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of webex with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-json Version *
egulias/email-validator Version *
guzzlehttp/guzzle Version ^7.0
illuminate/notifications Version ~10.0 || ~11.0
illuminate/support Version ~10.0 || ~11.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 laravel-notification-channels/webex contains the following files

Loading the files please wait ....