- Refactored Core Architecture: Moved logic from
includes/tosrc/Core/. - Class-Based Auth:
Auth.phpis now a static class underMSPGuild\Core. - Database Wrapper:
Database.phphandles all PDO connections centrally. - Modular Directory Structure: Created
src/Modules/to house future apps (Ticketing, CRM). - Composer Setup: Created
composer.jsonfor PSR-4 autoloading.
- Autoloader Initialization: Need to ensure
vendor/autoload.phpis generated and included inbootstrap.php. - Global Refactor: Update legacy files (like
login.phpandprofile.php) to useAuth::andDatabase::methods instead of old global functions. - Module Registration: Create a base class for Modules to automatically register themselves in the UI.
- Database Migration: Apply the new
organizationsandusersschema to support tiered services (Apprentice, Journeyman, Master).
- GPL First: The app must remain fully functional for local self-hosting.
- Cloud Ready: All new tables MUST include
org_idfor multi-tenancy. - Monetization: Tiers will be enforced via the
organizations.service_tierflag.