Search by

naf / app

floknapp

Starter app for your project when using NAF

Package info

github.com/nafphp/app

Language:HTML

Type:project

pkg:composer/naf/app

Statistics

Installs: 259

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.2.4 2026-10-10 14:02 UTC

This package is auto-updated.

Last update: 2026-10-10 14:03:24 UTC


README

A clean starting point for building applications with NAF. Ordinary PHP, a small set of plugins, and room for your own application.

Documentation

Your first application →

Setup, examples and how to replace the starter demo live in the NAF documentation. Choose optional packages with Which packages do I need?.

Install

composer create-project naf/app my-app
cd my-app
APP_ENV=dev php -S 127.0.0.1:8000 -t public

Serve only public/. Keep the development server on localhost.

Explore the demo

The welcome page includes interactive form and JSON examples. They use fetch() to show validation errors, responses and HTTP status without a page reload. The contact example validates only; it does not send or store messages. The forms retain their normal submissions when JavaScript is unavailable. The form plugin checks CSRF for both examples.

Start fresh opens the cleanup steps with Copy buttons for the terminal commands. Replace the demo routes first and save any changes you want to keep before running the removal command. The installed framework and plugins remain your starting point.

License

MIT. Part of NAF.