Skip to content

Instantly share code, notes, and snippets.

@ara-ta3
Created May 16, 2017 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ara-ta3/14331eea31ae14a30b6827c4a1971e4b to your computer and use it in GitHub Desktop.
Save ara-ta3/14331eea31ae14a30b6827c4a1971e4b to your computer and use it in GitHub Desktop.
hyper-run-getting-started
{
"name": "hyper built in server getting started",
"require-dev": {
"mpyw/php-hyper-builtin-server": "^2.0"
}
}
<?php
echo 'Hello World';
COMPOSER=./composer.phar
HYPER_RUN=./vendor/bin/hyper-run
server: install
$(HYPER_RUN) -S localhost:8080 -s localhost:8081 ./index.php
install: $(COMPOSER)
$(COMPOSER) install
$(COMPOSER):
php -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment