nazg/skeleton

Action-Domain-Responder (ADR) Micro framework for HHVM/Hack

Fund package maintenance!
ytake

Installs: 45

Dependents: 0

Suggesters: 0

Security: 0

Stars: 5

Watchers: 6

Forks: 1

Open Issues: 0

Language:Hack

Type:project

0.11.2 2020-07-13 03:03 UTC

README

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!

Build Status Packagist Packagist

Supported

HHVM 4.41 and above.

About Nazg

Create Project

$ composer create-project nazg/skeleton nazg-app-sample --prefer-dist

For Develop

Execute the hh-autoload.hack script each time you add the class file.

For Example

$ hhvm ./vendor/bin/hh-autoload.hack

Testing

$ hhvm ./vendor/bin/hacktest.hack tests/

CLI Tools

CLI Tools Provided by Default

Cache Clear Command

for Nazg\HCache

$ hhvm ./bin/cache-clear.hack

Container Cache Clear Command

for Nazg\Glue

$ hhvm ./bin/container-cache-clear.hack 

Docker

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'

Composer Scripts

Class Registrarion

docker-compose exec hhvm /bin/bash -c 'cd /var/www && composer register'

Testing

docker-compose exec hhvm /bin/bash -c 'cd /var/www && composer tests'

Framework Repository

Framework

License

The Nazg Framework is licensed under The MIT License (MIT). See License File for more information.