naf / framework
NAF - the ultra-light, functional PHP framework for fast microservices and APIs.
Requires
- php: >=8.3
- ext-json: *
- ext-pdo: *
- nyholm/psr7: ^1.8
- nyholm/psr7-server: ^1.1
- psr/container: ^2.0
- psr/http-factory: ^1.1
- psr/http-message: ^2.0
- psr/log: ^3.0
Requires (Dev)
- phpunit/php-code-coverage: ^12.1
- phpunit/phpunit: ^12.1
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
NAF
"As simple as possible, as flexible as necessary."
NAF is a modern, lightweight PHP microframework designed for real-world projects:
fast, minimal, extendable, and now fully embracing modern PHP standards like PSR-3, PSR-4, PSR-7, PSR-11, and PSR-18.
It builds on native PHP features and lets you stay in control:
Use only what you need, and extend freely when you want.
🧩 NAF provides a minimal core with a clean plugin architecture.
Everything beyond routing and dispatching, such as sessions, views, forms, or database, is handled by optional plugins.
You get full control over what your app includes, and nothing more.
Documentation
NAF is a small core with plugins around it. What each plugin does, how it is configured and what it needs is in the documentation. Not sure which packages you need? Start here.
Install
composer require naf/framework
License
MIT.
