hnto/nuki

There is no license information available for the latest version (0.1.4) of this package.

a new and flexible Nano PHP Framework

Maintainers

Details

github.com/Hnto/nuki

Source

Issues

Installs: 75

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:framework

0.1.4 2019-06-27 12:08 UTC

This package is auto-updated.

Last update: 2024-03-27 23:18:00 UTC


README

Please be aware that the Nuki framework is in BETA and NOT production ready. Documentation for usage is also a minimum at this time

Initial build package setup

composer require hnto/nuki

It is advised to use the skeleton application that already holds the setup required for the framework to run "composer create-project hnto/nuki-skeleton application_name"

Init Nuki Framework

The build package tool is available as an executable as "build/phing" When using the build tool you are given a list of usefull commands to setup your application.

  • Execute "build/phing" to view the available commands
    • when executing "init" the build tool will install the required packages, setup the files, folders etc.

Run framework

The Nuki framework works with Units, which are small applications running separate from each other.
These Units contain the necessary folders, classes and such to run your Unit. A service is required for a unit to be executed. In the service you can process user input, do templating, registering events, watchers (listeners) and firing them accordingly.

Steps

  • Create a new unit by running the build command "create-unit" and follow the steps.
  • Create a new service for a unit by running the build command "create-service" and follow the steps
  • Create (optional) an event(s) for the service by running the build command "create-events" and follow the steps
  • Create repositories for your application by running the build command "create-repository" and follow the steps
  • Create (optional) providers for your repositories by running the build command "create-provider" and follow the steps
  • Add your routes in the "routes/app.php" file

Units structure

  • Unit -> Authentication
    • Service -> Login
      • Method: index

For an example of how this looks like, go the skeleton app and view the folder "build/format/Units/Skeleton"