naf / app
Starter app for your project when using NAF
Requires
- php: >=8.3
- naf/form: ^0.2.4
- naf/framework: ^0.2.9
- naf/view: ^0.2.3
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
- nyholm/psr7: <1.8.2
Replaces
None
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
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.