clubdrei/php-dev-server

Wrapper around symfony/cli for easier install with composer

v1.2.0 2019-11-23 09:45 UTC

This package is auto-updated.

Last update: 2024-12-06 19:25:36 UTC


README

This package is a wrapper around the wonderful Symfony Binary.

Start development server

./vendor/bin/php-dev-server

Configuration in composer.json

{
    "extra": {
        "clubdrei/php-dev-server": {
            "port": 55555,
            "webDirectory": "public",
            "tlsEnabled": false,
            "p12File": null
        }
    }
}

Generate P12 file from Let's Encrypt certificate

  1. Generate certificate
  2. Convert to P12 openssl pkcs12 -export -out default.p12 -inkey privkey.pem -in cert.pem -certfile chain.pem
  3. Use symfony as export password
  4. Copy default.p12 to the desired directory``

Credits