Skip to content

Instantly share code, notes, and snippets.

@justinecodez
Forked from andyshinn/composer.json
Created March 1, 2021 09:57
Show Gist options
  • Save justinecodez/cf1fb1a80b6b4df6f293a8c72f975a4a to your computer and use it in GitHub Desktop.
Save justinecodez/cf1fb1a80b6b4df6f293a8c72f975a4a to your computer and use it in GitHub Desktop.

Revisions

  1. @andyshinn andyshinn revised this gist Dec 11, 2015. No changes.
  2. @andyshinn 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();