PHP Web Framework

Welcome to PHP Web Framework

A lightweight, flexible PHP framework for building web applications quickly and efficiently.


This framework provides essential components for database management, user authentication, table displays, and form handling.

View Examples
Database Management

Built-in database abstraction layer with PDO support, connection pooling, and easy configuration for multiple database environments.

  • PDO-based connections
  • Multiple database support
  • Connection pooling
Table Components

Flexible table display components with built-in action buttons, sorting capabilities, and responsive design.

  • ActionTable with CRUD buttons
  • ViewTable for read-only data
  • Bootstrap styling
Security Features

Comprehensive security features including authentication, authorization, CSRF protection, and input validation.

  • Session management
  • CSRF protection
  • Input sanitization
Quick Start
Installation
  1. Copy the framework to your web server
  2. Configure your database settings
  3. Import the database schema
  4. Start building your application!
Installation Guide
Example Usage
<?php
// Include framework
require_once 'framework/autoload.php';

// Create a model
class MyModel extends Database {
    public function getAll() {
        $sql = "SELECT * FROM my_table";
        return $this->getConnection()->query($sql)->fetchAll();
    }
}

// Create a list view
class MyList extends ActionTable {
    // Custom table implementation
}

// Use in your page
$model = new MyModel();
$data = $model->getAll();
$list = new MyList($data, $columns, "my-table");
$list->create_table();
Framework Features
  • Database abstraction layer
  • Table display components
  • Security and authentication
  • Form validation helpers
  • Template system
  • Asset management
  • Error handling
  • Extensible architecture