Created
May 16, 2017 10:45
-
-
Save ara-ta3/14331eea31ae14a30b6827c4a1971e4b to your computer and use it in GitHub Desktop.
hyper-run-getting-started
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "hyper built in server getting started", | |
"require-dev": { | |
"mpyw/php-hyper-builtin-server": "^2.0" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo 'Hello World'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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