Download the PHP package broadway/broadway-demo without Composer

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

Demo for Broadway - EventSourcing library for PHP

This repository contains a demo application to show how Broadway can be used within a Symfony application. The example is taken from the Practical Event Sourcing talk from Mathias Verraes.

For simplicity the demo uses the official DBAL event store and a custom DBAL read model implementation. You will need to have SQLite installed to run the demo.

build status

Running the demo

This demo doesn't have a GUI, only an API with the following endpoints:

Method Path Description
POST /basket Pick up a new basket, returns the basketId
POST /basket/{basketId}/addProduct Add a product to a basket (productId and productName should be given as form fields)
POST /basket/{basketId}/removeProduct Remove a product from a basket (productId as form field)
POST /basket/{basketId}/checkout Check out a basket
GET /advice/{productId} Retrieve Other people also bought this list

Running the tests

To run all the tests:

Code structure

Note that there are two files for the services: services.yaml and domain.yaml. domain.yaml contains all the domain-specific services (CommandHandler, ReadModels, Repositories), while services.yaml contains domain-unspecific services (controllers etc).

The domain specific tests can be found in test/Basket and test/ReadModel

Note that there is a functional test in test/Functional

For more information, read our blog post about this demo: http://labs.qandidate.com/blog/2014/12/30/a-broadway-demo-application/


All versions of broadway-demo with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
ext-pdo_sqlite Version *
symfony/symfony Version ^4.4
symfony/flex Version ^1.0
symfony/framework-bundle Version ^4.4
symfony/monolog-bundle Version ^3.1
broadway/broadway-bundle Version ~0.5
broadway/event-store-dbal Version ~0.4
doctrine/doctrine-bundle Version ^1.8
qandidate/stack-request-id Version ^2.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 broadway/broadway-demo contains the following files

Loading the files please wait ....