ahmadmunib/framework1

Customized Framework for FictionX Products

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:project

pkg:composer/ahmadmunib/framework1

v1.0.01 2025-12-28 18:59 UTC

This package is auto-updated.

Last update: 2025-12-28 19:02:08 UTC


README

A lightweight, Laravel-inspired PHP framework with zero external dependencies.

PHP Version License

Features

  • 🚀 Zero Dependencies - Pure PHP, no Composer packages required
  • 📦 PSR-4 Autoloading - Automatic class loading
  • 🛣️ Expressive Routing - Laravel-style routes with parameters
  • 📝 Query Builder - Fluent database interface
  • 🔒 Security - Prepared statements, error handling
  • Performance - Lightweight and fast

Quick Start

# Clone the repository
git clone https://github.com/your-org/dis-framework.git my-project
cd my-project

# Create storage directories
mkdir -p storage/logs storage/cache storage/uploads

# Start development server
php -S localhost:8000 -t public

Visit http://localhost:8000 to see your application running.

Basic Usage

Define Routes

// routes/web.php
Router::get('/hello/{name}', function (Request $request, string $name) {
    return "Hello, {$name}!";
});

Router::get('/users', 'UserController@index');

Database Queries

use Framework\Database\Connection as DB;

// Query Builder
$users = DB::table('users')
    ->where('active', 1)
    ->orderBy('name')
    ->get();

// Insert
$id = DB::table('users')->insert([
    'name' => 'John',
    'email' => 'john@example.com'
]);

Configuration

// Access config values
$appName = config('app.name');
$dbHost = config('database.connections.mysql.host');

Requirements

  • PHP 8.1 or higher
  • PDO extension
  • Apache with mod_rewrite or Nginx

Documentation

Full documentation is available in the docs/official-documentation directory:

Directory Structure

├── app/                # Application code
│   ├── Http/Controllers/
│   └── Models/
├── config/             # Configuration files
├── framework/          # Framework core
├── public/             # Web root
├── routes/             # Route definitions
├── storage/            # Logs, cache, uploads
└── tests/              # Test files

License

MIT License - see LICENSE file for details.

Author

Ahmad Munib - Technical Team Lead