Skip to content

BytesCrafter/panday

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Panday (by BytesCrafter IT Solutions) 🔨

Panday is an HMVC-capable PHP framework built with modern PHP 8.2+ best practices, designed to feel familiar to developers who love the productivity of Laravel and the simplicity/structure of CodeIgniter 4—but with a modular architecture that scales cleanly for real-world business apps.

The name “Panday” comes from the Filipino word for craftsman / builder—a perfect fit for a framework focused on building maintainable systems with strong foundations.


✨ Vision

Build a framework that is:

  • Modular by default (HMVC) — apps are composed of feature modules, not messy folders
  • Simple to reason about — clear conventions, clean file structure, minimal magic
  • Enterprise-ready — built-in middleware, guards, jobs, migrations, tests, logging
  • Modern PHP-first — strict types, PSR-4 autoloading, DI container, clean HTTP kernel
  • Developer-friendly — predictable, well-documented, easy to extend

✅ Core Features (Planned / In Progress)

HMVC Modules

Each module can have its own:

  • Controllers
  • Models
  • Views
  • Config
  • Routes
  • Lang
  • Migrations
  • Services
  • Middleware / Guards
  • Hooks / Events
  • Jobs
  • Tests
  • Traits

Framework Capabilities

  • Routing (web.php, api.php)
  • Controllers, Models, Views
  • Service container / dependency injection
  • Middleware pipeline
  • Guards / authentication layer
  • Event dispatcher + hooks system
  • Background jobs & queue driver abstraction
  • Database layer + migrations + seeders
  • Config loader, environment support
  • Localization (Lang)
  • Testing harness (PHPUnit)
  • CLI tooling (later: panday console)

🧱 Project Structure

Panday uses a clean split between app and framework:

panday/
├─ app/                  # Your application code (HMVC-ready)
├─ bootstrap/            # App bootstrapping
├─ config/               # Global configuration
├─ database/             # Database-related files (seeders later)
├─ framework/            # Panday core framework
├─ public/               # Public entry point (index.php)
├─ resources/            # Assets, templates, etc.
├─ routes/               # Route definitions (web/api/modules)
└─ storage/              # Logs, cache, temp files

app/ Folder (Your Code)

app/
├─ Config/
├─ Guards/
├─ Hooks/
├─ Http/
│  ├─ Controllers/
│  └─ Middleware/
├─ Jobs/
├─ Lang/
├─ Migrations/
├─ Models/
├─ Modules/
├─ Services/
├─ Traits/
├─ Views/
└─ Tests/

framework/ Folder (Core Engine)

This contains the internal engine that powers Panday:

  • Core Application + Container
  • HTTP Kernel, Request/Response
  • Support utilities

🚀 Requirements

  • PHP 8.2+
  • Composer 2+

📦 Installation

composer install
cp .env.example .env
composer dump-autoload

▶️ Run the Dev Server

php -S localhost:8000 -t public

Then open:

http://localhost:8000

You should see the Panday welcome page.


🧪 Run Tests

composer test

(Tests will expand as we build out the routing, modules, DB, and services.)


🗺️ Roadmap

Phase 1 — Core HTTP & Routing

  • Front controller (public/index.php)
  • App bootstrap (bootstrap/app.php)
  • Basic container
  • HTTP kernel + request/response
  • Router + route groups
  • Controller dispatcher
  • View engine
  • Error handling (404/500)

Phase 2 — HMVC Modules

  • Module discovery
  • Module routes
  • Module config & lang
  • Module views & overrides
  • Module migrations

Phase 3 — Security & Middleware

  • Middleware pipeline
  • Guards (session/token)
  • CSRF + secure headers
  • Rate limiting (optional)

Phase 4 — Database & Migrations

  • Database manager
  • Migration runner
  • Seeders
  • ORM-lite or query builder (TBD)

Phase 5 — Events, Hooks, Jobs

  • Event dispatcher
  • Hook system
  • Job queue abstraction
  • Worker CLI

Phase 6 — Developer Experience

  • CLI: php panday ...
  • Scaffolding generators
  • Documentation site

🧠 Design Philosophy

Panday follows a few guiding principles:

  1. Convention over complexity — predictable code > clever magic
  2. Modular architecture — scale by adding modules, not refactoring everything
  3. Readable first — future maintainers should understand it fast
  4. Secure by default — safe patterns built into the framework
  5. Modern PHP standards — strict types, PSR-4, clean abstractions

📄 License

Copyright © BytesCrafter IT Solutions.
All rights reserved.


🤝 Contributing

This project is currently in active development as a guided build.
Contribution rules and coding standards will be added once the core architecture is finalized.

About

Panday is an HMVC-capable PHP framework built with modern PHP 8.2+ best practices.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors