Skip to content
/ haku Public

A tiny web application framework with big ambitions.

License

Notifications You must be signed in to change notification settings

hejrobin/haku

Repository files navigation

Haku

A tiny web application framework with big ambitions.

Core Concepts

  1. Native Features First
    Haku aims to have a small footprint, without any external dependencies and relies soley on the power of native PHP 8.3 features.
  2. Developer Friendly
    Haku ships with a command line tool that helps you generate code, run code tests and set up a development server all from your terminal of choice.
  3. Sprouting Codebase
    Haku might have a limited feature-set out of the box, but does provide a great foundation to build and add bespoke libraries and components.

Getting Started

Prerequisites

Installing Haku

gh repo clone hejrobin/haku project-name

# or via ssh
# git clone git@github.com:hejrobin/haku.git project-name

cd project-name

php haku init --dev

Haku Command Line Tools

Haku ships with its own command line tool, haku which provides some helpful commands to aid you in the development of your project. You can always run haku --help to see what commands are available.

Available Commands

  • php haku init — Creates required configuration files, if you add --dev or --test configuration files for those environments will be created.
  • php haku serve — Starts a development server using PHP's built in server.
  • php haku make <generator> — Invokes one of the code generators that Haku ships with, run php haku make --help to see available generators.
  • php haku test — Runs all available *.spec.php tests in the workspace, you can control what tests to run with the flags --only or --omit.
  • php haku version — Shows current haku version.
  • php haku routes — Lists all available routes based on defined application routes.

Updating your Haku project

If you've forked Haku to use in your project, sometimes you might want to upgrade to the latest version. This requires * PHP ZIP Extension, and then you can run php haku upgrade to fetch the latest repository changes available.


Planned Features

  • Database Migrations

About

A tiny web application framework with big ambitions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages