Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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