Nazg is a Action-Domain-Responder (ADR) Micro framework that helps you quickly write simple yet powerful web applications for HHVM/Hack.
Begin developing HHVM/Hack Http Microframework Skeleton!
HHVM 4.41 and above.
- Fast Routing For Hack
- Dependency Injection Container For HHVM/Hack
- Request/Response Middleware Component
$ composer create-project nazg/skeleton nazg-app-sample --prefer-dist
Execute the hh-autoload.hack script each time you add the class file.
For Example
$ hhvm ./vendor/bin/hh-autoload.hack
$ hhvm ./vendor/bin/hacktest.hack tests/
CLI Tools Provided by Default
for Nazg\HCache
$ hhvm ./bin/cache-clear.hack
for Nazg\Glue
$ hhvm ./bin/container-cache-clear.hack
Using hhvm/hhvm-proxygen:latest and nginx:1.17-alpine Containers
$ docker-compose build hhvm-dev web-server
$ docker-compose up -d
$ docker-compose exec hhvm /bin/bash -c 'cd /var/www && composer update'
docker-compose exec hhvm /bin/bash -c 'cd /var/www && composer register'
docker-compose exec hhvm /bin/bash -c 'cd /var/www && composer tests'
The Nazg Framework is licensed under The MIT License (MIT). See License File for more information.