PHP code example of proophsoftware / event-machine-skeleton
1. Go to this page and download the library: Download proophsoftware/event-machine-skeleton library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
proophsoftware / event-machine-skeleton example snippets
bash
$ git clone https://github.com/proophsoftware/event-machine-skeleton.git prooph-building-mgmt
$ cd prooph-building-mgmt
$ git checkout demo
$ docker run --rm -it -v $(pwd):/app prooph/composer:7.1 install
$ docker-compose up -d
$ docker-compose run php php scripts/create_event_stream.php
bash
docker-compose run php php vendor/bin/phpunit
bash
Name Command State Ports
---------------------------------------------------------------------------------------------------------------------------------------------------
proophbuildingmgmt_event_machine_projection_1 docker-php-entrypoint php ... Up
proophbuildingmgmt_nginx_1 nginx -g daemon off; Up 0.0.0.0:443->443/tcp, 0.0.0.0:8080->80/tcp
proophbuildingmgmt_php_1 docker-php-entrypoint php-fpm Up 9000/tcp
proophbuildingmgmt_postgres_1 docker-entrypoint.sh postgres Up 0.0.0.0:5432->5432/tcp
proophbuildingmgmt_rabbit_1 docker-entrypoint.sh rabbi ... Up 0.0.0.0:8081->15671/tcp, 15672/tcp,
0.0.0.0:15691->15691/tcp, 25672/tcp, 4369/tcp, 5671/tcp,
5672/tcp
bash
$ docker-compose run php php bin/reset.php
bash
$ docker-compose stop event_machine_projection
$ docker-compose run php php bin/reset.php
$ docker-compose up -d
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.