Skip to content

walter-a-jablonowski/mini-frm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Framework

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

Features

  • 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

Installation

  • Run composer install to get dependencies

    composer install
  • Ensure these directories exist and are writable

    • /data
    • /data/cache
    • /data/config
    • /data/users

Structure

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

LICENSE

Copyright (C) Walter A. Jablonowski 2025, free under MIT license

This app is build upon PHP and free software (see credits)

Privacy | Legal

About

PHP mini framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published