PHP framework entirely made by AI with Windsurf IDE and Claude in a few hours (2025-01-08).
I included the most basic framework classes in the initial prompt to reduce some complexity at first - currently all is file-based (db could be added). A bunch of methods was missing in AI's code but the AI was able to fix that with a series of prompts. Basically we have a framework with nearly no effort.
Possible extensions
- detail check of AI's code
- maybe improve some code or add some methods
- further framework classes could be added
- File-based data storage (no database required)
- Simple routing system using query parameters
- Session management with caching
- User authentication
- AJAX handling
- Error handling
- Configuration management
- Multilingual support
- Bootstrap 5.3 UI
-
Run composer install to get dependencies
composer install
-
Ensure these directories exist and are writable
- /data
- /data/cache
- /data/config
- /data/users
AI generated class diagram
/config
/data # Data and caches
/framework
/pages # Application pages
/PAGE_NAME
/ajax # large AJAX handlers
controller.php
controller.js
style.css
/view.php # Page view
/view/-this.php # or
/view/login.php # or multiple
/view/register.php
ajax.php # AJAX request handler
index.php # Application entry point
Copyright (C) Walter A. Jablonowski 2025, free under MIT license
This app is build upon PHP and free software (see credits)