event-engine / php-inspectio-cody
PHP Cody for InspectIO
Requires
- php: ^7.4 || ^8.0
- ext-json: *
- christoph-kluge/reactphp-http-cors-middleware: ^2.0.0
- event-engine/php-inspectio-graph-cody: ^0.1.0
- fig/http-message-util: ^1.1
- open-code-modeling/php-code-generator-transformator: ^0.1.0
- psr/http-message: ^1.0
- react/http: ^1.1
- seregazhuk/php-watcher: ^0.5.2 || dev-master
Requires (Dev)
- jangregor/phpstan-prophecy: ^0.8.1
- phpspec/prophecy-phpunit: ^2.0
- phpstan/phpstan: ^0.12.33
- phpstan/phpstan-strict-rules: ^0.12.4
- phpunit/phpunit: ^9.2.6
- prooph/php-cs-fixer-config: ^0.5.0
- roave/security-advisories: dev-latest
This package is auto-updated.
Last update: 2024-12-05 23:30:07 UTC
README
This is the repository of the Cody server. prooph board can connect to a coding bot called Cody. With its help you can generate working code from an event map.
Cody server runs at http://localhost:3311
Installation
There is also an Event Engine Cody Skeleton available.
Please make sure you have installed Docker and Docker Compose.
It is recommended to create a new application for code generation which installs this library via Composer. This allows independence of your application code and avoids running in Composer dependency conflicts.
$ composer require event-engine/php-inspectio-cody
Configuration
The following commands copies the necessary files from this library to the root of your application folder.
cp vendor/event-engine/php-inspectio-cody/public .
cp vendor/event-engine/php-inspectio-cody/.env.dist ./.env
cp vendor/event-engine/php-inspectio-cody/.env.dist .
cp vendor/event-engine/php-inspectio-cody/app.env.dist ./app.env
cp vendor/event-engine/php-inspectio-cody/app.env.dist .
cp vendor/event-engine/php-inspectio-cody/codyconfig.php .
cp vendor/event-engine/php-inspectio-cody/docker-compose.yml .
cp vendor/event-engine/php-inspectio-cody/php-watcher.yml.dist .
To mount our business application folder to the Cody server you have to update the docker-compose.yml
file. Please
take a look at the Cody for more
details.
Start Cody Server
To start the Cody server execute the following command. You should be able to connect from InspectIO to the Cody server
via the URL http://localhost:3311
.
$ docker-compose up -d --no-recreate