Skip to content

Chandra2004/FRAMEWORK

The Framework Logo

The Framework

Modern PHP Framework for Everyone

License PHP Version Version Security

WebsiteDocumentationGet StartedChangelog


🎯 About The Framework

The Framework is a modern, secure, and lightweight PHP framework designed with one mission: make web development accessible to everyone, including developers using free shared hosting without SSH access.

Why The Framework?

✅ No VPS required          ✅ Laravel-style DX
✅ Works on free hosting    ✅ Built-in security (WAF, CSRF)     ✅ Ultra-Lightweight (~27MB)
✅ Comprehensive documentation      ✅ 20x Smaller than Laravel
✅ Auto-WebP Uploads        ✅ Production-ready
✅ Fluent Helpers           ✅ Clean Internal Split

🛡️ Major Security Patch (v5.0.1-Secure)

"The Iron Dome" Update

  • Military-Grade Security (Phase 2): Introduced a 4-Layer security model for the Web Command Center.
  • Automatic Global CSRF: All state-changing routes (POST, PUT, DELETE) are now protected by default via Global Router Middleware.
  • Strict File Whitelist: Replaced the legacy blacklist with a strict whitelist protocol for serving private files.
  • Clean Tinker Engine: Web Tinker now produces clean, JSON-pretty output identical to the CLI version, with enhanced RCE obfuscation detection.
  • Sensitive Data Masking: Professional-grade logging that automatically masks passwords and secret tokens in database execution logs.
  • Global Middleware System: New CORE support for registering middlewares that run on every single request.
  • TFWire 2.0 (Component Engine): Major rewrite with Facade support, Plugin system, and State Encryption.
  • Fluent Tester API: New TFWire component testing which is 10x faster than browser testing.
  • Artisan Generator v2: New make:command and make:component for faster scaffolding.

🔄 What's New in v5.0.1?

The "Fluent DX" Update

  • Modern Internal Split: All framework-internal controllers (Error, Debug, Sitemap, etc.) moved to App\Internal to keep the developer's space clean.
  • Fluent Syntax Engine: New global helpers allowing return view(), return redirect(), and return json() for a much smoother coding experience.
  • Premium Flash Helper: New flash('notification') utility for elegant transient message handling.
  • Trait Logic Migration: System traits moved to App\Traits to prevent accidental modification.
  • Enhanced Redirects: Fluent redirect builder supporting redirect()->back().
  • Safe Auto-File Clearing: Migrasi (fresh/rollback) kini otomatis membersihkan folder upload yang diizinkan (shared, docs, dll) tanpa menghapus file sistem seperti .htaccess.

Installation

# Clone the repository
git clone https://github.com/chandra2004/the-framework.git
cd the-framework

# Install dependencies
composer install

# Setup environment
php artisan setup

# Run development server
php artisan serve

Visit http://127.0.0.1:8080 🎉


📚 Documentation

Our documentation is comprehensive, well-organized, and beginner-friendly:

Getting Started

The Basics

Database

Advanced Topics

Special Features

📖 View Full Documentation


✨ Key Features

🛡️ Security First (Grade A)

// Built-in Web Application Firewall
WAFMiddleware::protect();

// Automatic CSRF protection
@csrf

// Secure headers out-of-the-box
X-Frame-Options, CSP, HSTS, XSS-Protection

🌐 Hosting Friendly (Unique!)

The only PHP framework designed for shared hosting users:

# No SSH? No problem! Use Web Command Center
https://yoursite.com/_system/migrate
https://yoursite.com/_system/seed
https://yoursite.com/_system/tinker  <-- NEW!
https://yoursite.com/_system/logs

Perfect for:

  • ✅ InfinityFree, 000webhost, Hostinger
  • ✅ Any shared hosting without SSH
  • ✅ Students with limited budget

⚡ Developer Experience

// Expressive routing (Laravel-like)
Router::get('/users/{id}', [UserController::class, 'show']);

// Powerful ORM
$users = User::with('posts')->where('active', true)->get();

// Clean blade templates
@extends('layouts.app')
@section('content')
    <h1>{{ $title }}</h1>
@endsection

🎓 Learning Resources

Official Guides

Example Projects

  • 🛒 E-commerce Starter (coming soon)
  • 📝 Blog Platform (coming soon)
  • 🎫 Event Management (coming soon)

🔄 What's New in v5.0.1?

Patch Update & Stability Build

🔐 Security & DX Enhancements

  • Fluent Migrations: Chaining support for schema building (e.g., ->unique(), ->index()).
  • Smart Rate Limiting: Local development bypass (never get blocked on localhost again).
  • Enhanced Helpers: New base_path(), storage_path(), and ip() utilities.
  • Deep Optimization: php artisan optimize now clears ratelimit and storage caches.
  • Premium Error UI: Specialized dashboard for Blade errors with source mapping.

🤝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for details.

Ways to Contribute

  • 🐛 Report bugs
  • 💡 Suggest features
  • 📝 Improve documentation
  • 🔧 Submit pull requests

🛡️ Security Vulnerabilities

If you discover a security vulnerability, please email:

📧 [email protected]

DO NOT create public GitHub issues for security vulnerabilities.

See SECURITY.md for our security policy.


📄 License

The Framework is open-sourced software licensed under the MIT license.


💖 Credits

Created with ❤️ by Chandra Tri Antomo

Special Thanks

  • Laravel team for inspiration
  • Illuminate components
  • All contributors and users

⭐ Star us on GitHub — it motivates us a lot!

DocumentationWebsiteGitHub

Made in 🇮🇩 Indonesia

About

Framework PHP 8.3 modern, cepat, dan aman karya anak bangsa. Terinspirasi dari Laravel dengan fitur unggulan seperti CLI Artisan-style, Dependency Injection, dan Blade Templating.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors