Download the PHP package broadcastt/broadcastt-laravel-http without Composer

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

Broadcastt

codecov

Realtime web applications are the future. Broadcastt provides tools to help developers create realtime applications.

Laravel HTTP Library

Be aware that this library is still in beta and not reached the first MAJOR version.

Semantic Versioning 2.0.0

Major version zero (0.y.z) is for initial development. Anything may change at any time. The public API should not be considered stable.

This library is compatible with Laravel 5.5+

This is an HTTP library for Laravel. If you are looking for a client library or a different server library please check out our list of libraries.

For tutorials and more in-depth documentation, visit the official site.

Documentation

First steps

Require this package, with Composer

The Broadcastt service provider is registered automatically.

If you want you can register the Broadcastt facade.

Configuration

To configure only the Broadcasting driver you have to modify config/broadcasting.php. You have to have an item in the connections array with its driver set to broadcastt.

The recommended way is to use environment variables or use .env to configure these data.

You can also use the PUSHER_APP_KEY, PUSHER_APP_SECRET, PUSHER_APP_ID and PUSHER_APP_CLUSTER environment variables respectively.

To configure other connection for the facade you should publish config/broadcastt.php.

In the published config/broadcasting.php file you can define many connections.

id (Integer)

The id of the application

key (String)

The key of the application

secret (String)

The secret of the application

cluster (String) Optional

The cluster of the application

Default value: eu

Additional options

useTLS (String)

Short way to change scheme to https and port to 443

debug (Boolean)

Turns on debugging for all requests

Default value: false

basePath (String)

The base of the path what the request will call

Default value: /apps/{AppId}

scheme (String)

E.g. http or https

Default value: http

host (String)

The host e.g. cluster.broadcasttapp.com. No trailing forward slash

Default value: eu.broadcasttapp.xyz If the cluster is not set during initialization

port (String)

The http port

Default value: 80

timeout (String)

The http timeout

Default value: 30

Usage of broadcaster

BroadcasttServiceProvider registers a driver for Broadcasting, so in config/broadcasting.php you can use broadcastt driver for broadcasting.

For example you can set BROADCAST_DRIVER environment variable to broadcastt.

Usage of facade

client($connection = null)

Returns a client instance

connection($connection = null)

Alias for client($connection = null)

trigger($channels, $name, $data, $socketId = null, $jsonEncoded = false)

Trigger an event by providing event name and payload.

Optionally provide a socket ID to exclude a client (most likely the sender).

triggerBatch($batch = [], $encoded = false)

Trigger multiple events at the same time.

get($path, $params = [])

GET arbitrary REST API resource using a synchronous http client.

All request signing is handled automatically.

Contributing

Everyone is welcome who would help to make this library "Harder, Better, Faster, Stronger".


All versions of broadcastt-laravel-http with dependencies

PHP Build Version
Package Version
Requires broadcastt/broadcastt-php-http Version ^0.4.3
illuminate/broadcasting Version ^9.0|^10.0
illuminate/support Version ^9.0|^10.0
php Version ^8.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 broadcastt/broadcastt-laravel-http contains the following files

Loading the files please wait ....