nazg / skeleton
Action-Domain-Responder (ADR) Micro framework for HHVM/Hack
Fund package maintenance!
ytake
Installs: 44
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 6
Forks: 1
Open Issues: 0
Language:Hack
Type:project
Requires
- hhvm: ^4.62
- facebook/xhp-lib: ^3.2
- hhvm/hhvm-autoload: ^3.0
- hhvm/hsl: ^4.25
- hhvm/hsl-experimental: ^4.50
- nazg/framework: ^0.13.2
- ytake/hackdotenv: ^0.9
Requires (Dev)
- facebook/fbexpect: ^2.7
- hhvm/hacktest: ^2.0
- hhvm/hhast: ^4.0
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!
Supported
HHVM 4.41 and above.
About Nazg
- Fast Routing For Hack
- Dependency Injection Container For HHVM/Hack
- Request/Response Middleware Component
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
License
The Nazg Framework is licensed under The MIT License (MIT). See License File for more information.