rosem/webservice

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Rosem Web Framework

dev-master 2021-02-13 07:47 UTC

This package is not auto-updated.

Last update: 2021-10-16 13:06:08 UTC


README

Middleware based modern PHP web framework.

Become a Patron!

Key features:

  • TODO: Non-blocking IO
  • HTTP2 / HTTP3 support
  • All PSRs respected
  • Decoupled standalone packages
    • Modular via service providers
    • Extensible via contracts

Getting started

Build the Docker container and start the webserver:

docker-compose build --build-arg uid=$(id -u $USER) --build-arg gid=$(id -g $USER)
docker-compose up server
# or on a different IP and/or port
docker-compose run --rm -p 127.0.0.127:80:80 server

Install project dependencies:

docker-compose exec server composer install --ignore-platform-reqs --no-interaction --no-scripts

To run commands inside the container:

# Rosem CLI commands
docker-compose exec server bin/rosem
# OS commands
docker-compose exec server bash

To start PHP's internal webserver on port 8000:

docker-compose exec server php -S 0.0.0.0:8000 -t public server.php