Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nette-examples/flat-file-blog

📰 Simple flat-file blog using Nette and PHP 8.0
https://github.com/nette-examples/flat-file-blog

blog dependency-injection example framework nette nette-framework php template

Last synced: 26 days ago
JSON representation

📰 Simple flat-file blog using Nette and PHP 8.0

Awesome Lists containing this project

README

        

# Nette flat-file blog example
This repository demonstrates how to use multiple modules in nette application

## Run the blog
Minimum required PHP version is **8.0**
```bash
composer update
```
```bash
php -S localhost:80 -t public/
```

## What can you learn?
- Automatically registering services using SearchExtension
- How to design an optimal skeleton for bigger applications
- How to create links between multiple modules
- Using a better module mapping (in /config/main.neon)
- How to use nette/forms with factories, and where to put handling logic
- Creating custom form renderer
- Neon config files can be separated and included to main file
- How to change layout and template paths (in base presenters)
- Router can be used as a service
- How to delegate model logic to keep codebase clean