Download the PHP package jul6art/push-bundle without Composer

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

logo dev in the hood

License Version

jul6art/push-bundle

Symfony real-time notification bundle

:warning: Work in progress so keep calm. The good news: this is maintained!

Requirements

Installation

Then Download the mercure hub depending on your operating system and install it in the root of your project. For each release, the assets section list operating systems implementations. The folder must contain the mercure bin. Rename this folder mercure.

EventSource Polyfill

and import it on client side to make push works on IE and Edge

Generate new JWT token (Optionnal)

Go to jwt.io and put your future mercure secret key (default it's !ChangeMe!) in the verify signature textarea and this array in the payload textarea

Because the array is empty, the Symfony app will only be authorized to publish public updates (see the authorization section of symfony/mercure-bundle for further information).

THen store the generated token in your .env file as MERCURE_JWT_TOKEN parameter

Start mercure server

The default token is signed with the secret key: !ChangeMe!

CORS_ALLOWED_ORIGINS is the client URL and port. It can be * or a list of domains ADDR is the server url and 3000 is the port for mercure server

:warning: By default, push messages are async so you need to launch a crawler in a terminal to dequeue messages and send it

Using with api-platform

Server side

Client side

Using without api-platform

Server side

Sync (Optionnal)

Other messenger messages (Optionnal)

Can be async_priority_high or async_priority_low or sync

Asyncable Annotation (Optionnal)

My Entity

My EntityEvent

All actions in listeners who listen these event class consts will be async

You can also specify which doctrine events you want to track

Available events are

License

The Push Bundle is open-sourced software licensed under the MIT license.

© 2023 dev in the hood


All versions of push-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4
jul6art/core-bundle Version ^1.0
symfony/config Version ^4.4 || ^5.0
symfony/dependency-injection Version ^4.4 || ^5.0
symfony/mercure-bundle Version *
symfony/messenger Version ^4.4 || ^5.0
symfony/http-kernel Version ^4.4 || ^5.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 jul6art/push-bundle contains the following files

Loading the files please wait ....