Mirotic is an MVC framework for Hack + HHVM
Latest Version: 0.0 -- In Development
Project Structure:
config/
Mirotic.php
-- Stores app-wide configuration information. Customize at will.config.ini
-- Additional configuration settings for HHVM
bin/
mir
-- Framework util app. Used for code generation, etc.
src/
controllers/
-- The logic for a particular routeelements/
-- Place for all XHP elementsexceptions/
-- Place for all exceptionsgenerated/
-- Place for any (auto)generated codelib/
-- Place for Mirotic framework codepages/
-- The HTML for a particular routeutils/
-- Various utility classes/functions
public/
css
-- Where all the CSS livesimg
-- Where all the images liveindex.php
-- Entrypoint to the applicationjs
-- Where all the JS lives
Mirotic uses composer for dependency management. To install, please run:
hhvm $(which composer) install
To run the server locally for debugging,
hhvm -m server -c config/config.ini -p 8080
The site will be available at http://localhost:8080
.
Mir is the name of the framework toolkit. It's a CLI program that will handle the mundane things like creating new routers, linting, etc.
To run,
hhvm bin/mir