Skip to content

Instantly share code, notes, and snippets.

@andyshinn
Last active February 18, 2024 12:05
Show Gist options
  • Save andyshinn/e2c428f2cd234b718239 to your computer and use it in GitHub Desktop.
Save andyshinn/e2c428f2cd234b718239 to your computer and use it in GitHub Desktop.

Revisions

  1. andyshinn revised this gist Dec 11, 2015. No changes.
  2. andyshinn created this gist Dec 11, 2015.
    5 changes: 5 additions & 0 deletions composer.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    {
    "require": {
    "mfacenet/hello-world": "v1.*"
    }
    }
    15 changes: 15 additions & 0 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    app:
    restart: 'yes'
    image: php:7
    command: php -S 0.0.0.0:8000 /app/index.php
    ports:
    - "8000:8000"
    volumes:
    - .:/app

    composer:
    restart: 'no'
    image: composer/composer:php7
    command: install
    volumes:
    - .:/app
    4 changes: 4 additions & 0 deletions index.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    <?php
    require 'vendor/autoload.php';
    use HelloWorld\SayHello;
    echo SayHello::world();