PHP code example of event-engine / php-engine-skeleton
1. Go to this page and download the library: Download event-engine/php-engine-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/ */
event-engine / php-engine-skeleton example snippets
bash
$ docker run --rm -it -v $(pwd):/app prooph/composer:7.4 create-project event-engine/php-engine-skeleton <your_project_name>
$ cd <your_project_name>
$ sudo chown $(id -u -n):$(id -g -n) . -R
$ 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
---------------------------------------------------------------------------------------------------------------------------------------------------
eebuildings_event_engine_projection_1 docker-php-entrypoint php ... Up
eebuildings_nginx_1 nginx -g daemon off; Up 0.0.0.0:443->443/tcp, 0.0.0.0:8080->80/tcp
eebuildings_php_1 docker-php-entrypoint php-fpm Up 9000/tcp
eebuildings_postgres_1 docker-entrypoint.sh postgres Up 0.0.0.0:5432->5432/tcp
eebuildings_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_engine_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.