PHPackages                             antidot-fw/reactive-starter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. antidot-fw/reactive-starter

ActiveProject[Framework](/categories/framework)

antidot-fw/reactive-starter
===========================

Reactive Antidot Framework Apllication Starter

1.1.2(5y ago)14221[3 PRs](https://github.com/antidot-framework/reactive-antidot-starter/pulls)BSD-2-ClausePHPPHP ^7.4|^8.0

Since Jan 16Pushed 3y ago2 watchersCompare

[ Source](https://github.com/antidot-framework/reactive-antidot-starter)[ Packagist](https://packagist.org/packages/antidot-fw/reactive-starter)[ GitHub Sponsors](https://github.com/kpicaza)[ RSS](/packages/antidot-fw-reactive-starter/feed)WikiDiscussions 2.x.x Synced today

READMEChangelog (7)Dependencies (20)Versions (11)Used By (0)

Reactive Antidot Framework
==========================

[](#reactive-antidot-framework)

[![link-packagist](https://camo.githubusercontent.com/67a672040c122e228ed6a949fe881606032002221a016ca8de31077835b35739/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616e7469646f742d66772f72656163746976652d737461727465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/antidot-fw/reactive-starter)

This framework is based on concepts and components of other open source software, especially [Zend Expressive](https://docs.zendframework.com/zend-expressive/), [Zend Stratigillity](https://docs.zendframework.com/zend-stratigility/), [Recoil](https://github.com/recoilphp/recoil) and [React PHP](https://reactphp.org/).

Installation
------------

[](#installation)

Install a project using [composer](https://getcomposer.org/download/) package manager:

```
composer create-project antidot-fw/reactive-starter dev
mv dev/.* dev/* ./ && rmdir dev
bin/console server:run
```

Open your browser localhost on port `5555` and you will see the [DriftPHP Server](https://github.com/driftphp/server) up and running.

Config
------

[](#config)

### Server Config

[](#server-config)

Default config

```
parameters:
    server:
      host: '0.0.0.0'
      port: '5555'
      max_concurrency: 100
      buffer_size: 4096
      workers: 4
```

### Development Mode

[](#development-mode)

To run it in dev mode you can run `config:development-mode` command

```
bin/console config:development-mode
```

Or you can do it by hand renaming from `config/services/dependencies.dev.yaml.dist` to `config/services/dependencies.dev.yaml`

```
mv config/services/dependencies.dev.yaml.dist config/services/dependencies.dev.yaml
```

### Hot Code Reloading

[](#hot-code-reloading)

```
composer require seregazhuk/php-watcher --dev
```

You can use [Php whatcher](https://github.com/seregazhuk/php-watcher) with composer for more friendly development.

```
bin/console server:watch
```

[![Default homepage](https://camo.githubusercontent.com/69516d52921c7e12646b50c49d1d15d85ea8d44fe6bb532bcdb20b012ddac1be/68747470733a2f2f67657474696e672d737461727465642e616e7469646f7466772e696f2f696d616765732f64656661756c742d686f6d65706167652e6a7067)](https://camo.githubusercontent.com/69516d52921c7e12646b50c49d1d15d85ea8d44fe6bb532bcdb20b012ddac1be/68747470733a2f2f67657474696e672d737461727465642e616e7469646f7466772e696f2f696d616765732f64656661756c742d686f6d65706167652e6a7067)

Open another console and check the built-in Cli tool

```
bin/console
```

[![Default console tool](https://camo.githubusercontent.com/e3cbcd47bdfc61a71ac8ed9e784857285a19d135f63c4873d665783dbad778c0/68747470733a2f2f67657474696e672d737461727465642e616e7469646f7466772e696f2f696d616765732f64656661756c742d636f6e736f6c652e6a7067)](https://camo.githubusercontent.com/e3cbcd47bdfc61a71ac8ed9e784857285a19d135f63c4873d665783dbad778c0/68747470733a2f2f67657474696e672d737461727465642e616e7469646f7466772e696f2f696d616765732f64656661756c742d636f6e736f6c652e6a7067)

Async Usage
-----------

[](#async-usage)

It allows executing promises inside PSR-15 and PSR-7 Middlewares and request handlers

### PSR-15 Middleware

[](#psr-15-middleware)

```
