For reference only, because the project is under development.
composer create-project anzubko/swf
DocumentRoot {SITE_ROOT}/public
<Directory {SITE_ROOT}/public>
FallbackResource /.bin/index.php
</Directory>
root {SITE_ROOT}/public;
location / {
try_files $uri /.bin/index.php$is_args$args;
}
location /.bin {
fastcgi_pass {PHP_FPM_URL}:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}