Starter project for the Annabel PHP Framework. A clean and modern foundation for building full-stack web applications.
Create a new project using Composer:
composer create-project codemonster-ru/annabel-skeleton myapp
cd myapp
composer startOpen http://localhost:8000 to see your first page rendered by Annabel.
The codemonster-ru/security package is enabled by default.
- CSRF and throttling are auto-registered in the kernel.
- Use
.envto disable or tuneSECURITY_*settings.
Default SECURITY_* values:
SECURITY_CSRF_ENABLED=true
SECURITY_CSRF_ADD_TO_KERNEL=true
SECURITY_CSRF_VERIFY_JSON=false
SECURITY_CSRF_INPUT_KEY=_token
SECURITY_THROTTLE_ENABLED=true
SECURITY_THROTTLE_ADD_TO_KERNEL=true
SECURITY_THROTTLE_MAX_ATTEMPTS=60
SECURITY_THROTTLE_DECAY_SECONDS=60- PHP 8.2 or higher
- Composer