Skip to content

julienvolle/POC-Dunglas-Mercure-PHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Mercure

Author: GitHub Dunglas/Mercure
Article: Symfony Blog Article
Recommendation: Symfony Component Recommendation

Install

  • Require Docker & Docker Compose
  • Run make start to up/build Mercure & PHP containers
  • Run make stop to stop/down all containers

Path

http://localhost:8080/ = Server PHP
http://localhost:3000/ = Server Mercure

Generate Bearer Token

{
    "mercure": {
        "publish": ["*"]
    }
}
  • In VERIFY SIGNATURE, replace your-256-bit-secret by myVerySecretKey
  • In Encoded, get token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJtZXJjdXJlIjp7InB1Ymxpc2giOlsiKiJdfX0.OixxclMTzRaafcsI3hP8MnpIf9v_RqQzmvSygxizYJ0

Call

  • In header, add a Bearer Tocken and copy/paste the above token
  • in body, add a form-urlencoded and paste:
key value
topic http://localhost:8080/ping
data 0

About

https://mercure.rocks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published