# upMVC > Lightweight PHP 8.3+ modular MVC kernel (v2.8.1). Compose universal packs (jobs, private files, PSR-7/15/17 bridge) and SaaS packs (tenancy, payments) from Packagist. Do not fork the core. upMVC (BitsHost) is an open-source MMVC PHP 8.3+ kernel ("Direct PHP First, Zero Magic"): boot, Router v2 (HTTP methods + typed params), middleware (JWT, CORS, CSRF, RateLimit, TrustedProxies/CIDR), frozen micro `Events::listen`/`emit`, dumb `Validator::validate`, migrate tool, and frontend freedom (plain PHP/HTML, React/Vue/Svelte islands, or full SPA). MIT license. ## Stack - Kernel: https://github.com/upMVC/upMVC — Packagist `bitshost/upmvc` (`^2.8`) — current `v2.8.1` - Universal pack — Jobs (standalone or SaaS): https://github.com/upMVC/upMVC-Jobs-Pack — `bitshost/upmvc-jobs-pack` (`v0.1.0`; DB-backed background queue + cron CLI worker, zero Redis required) - Universal pack — Files (standalone or SaaS): https://github.com/upMVC/upMVC-Files-Pack — `bitshost/upmvc-files-pack` (`v0.1.0`; private `storage/` uploads, real `finfo` MIME policy, HMAC-SHA256 signed download tokens) - Universal pack — PSR Bridge (standalone or SaaS): https://github.com/upMVC/upMVC-PSR-Bridge — `bitshost/upmvc-psr-bridge` (`v0.1.0`; optional PSR-7 / PSR-15 / PSR-17 bridge via `nyholm/psr7` without bloating the kernel) - Starter host (SaaS): https://github.com/upMVC/upMVC-SaaS — `bitshost/upmvc-saas` (thin composed starter requiring kernel + saas-pack + payments-pack; not a kernel fork) - SaaS pack: https://github.com/upMVC/upMVC-SaaS-Pack — `bitshost/upmvc-saas-pack` (`^1.2`; tenants, plans, JWT auth, platform admin, Harvest ops including mail/notify/audit/MFA, `saas-next`) - Payments pack: https://github.com/upMVC/upMVC-Payments-Pack — `bitshost/upmvc-payments-pack` (`^0.2.2`; Stripe, bank transfer, cash, manual, strict platform-admin offline RBAC) - API plane (optional): https://github.com/BitsHost/PHP-CRUD-API-Generator ## Install ```bash # Kernel as standalone project composer create-project bitshost/upmvc my-app # Kernel as library + optional universal packs composer require bitshost/upmvc:^2.8 composer require bitshost/upmvc-jobs-pack bitshost/upmvc-files-pack bitshost/upmvc-psr-bridge # SaaS starter composer create-project bitshost/upmvc-saas my-saas # SaaS packs into a host composer require bitshost/upmvc:^2.8 bitshost/upmvc-saas-pack:^1.2 bitshost/upmvc-payments-pack:^0.2.2 ``` Register providers in host `src/Etc/packages.php` (`JobsServiceProvider`, `FilesServiceProvider`, `PsrBridgeServiceProvider`, `SaasServiceProvider`, `PaymentsServiceProvider`). ## Kernel vs Common vs Modules - Kernel product: `src/Etc/` (Router v2, Middleware, `Events`, `Validator`, `Environment` resolving host `src/Etc/.env` outside `vendor/`) - Shared skeleton: `src/Common/Bmvc` (BaseModel / BaseView / BaseController / BaseApiController) — optional to extend; prefer host `AppModel` / `AppView` in library mode, never edit `vendor/`. - Feature code: `src/Modules/` — universal API-first layout `src/Modules/Api/Modules/{Domain}/` works identically in standalone and SaaS apps. Stock ships Welcome only; demos are a Releases zip. - Docs: https://github.com/upMVC/upMVC/blob/main/docs/KERNEL_COMMON_BMVC.md ## Docs for agents and humans - Ecosystem architecture & patterns: https://github.com/upMVC/upMVC/blob/main/docs/ECOSYSTEM_ARCHITECTURE.md - Compose SaaS: https://github.com/upMVC/upMVC/blob/main/docs/BUILD_SAAS_APP.md - Kernel agent pack: https://github.com/upMVC/upMVC/blob/main/docs/AGENT_PACK.md - Security policy: https://github.com/upMVC/upMVC/blob/main/SECURITY.md - saas-next CLI: https://github.com/upMVC/upMVC-SaaS-Pack/blob/master/docs/SAAS_NEXT.md - Harvest ops: https://github.com/upMVC/upMVC-SaaS-Pack/blob/master/docs/09-harvest-ops.md - Site: https://upmvc.com/ - Archive (previous marketing): https://old.upmvc.com/ ## Rules - Scope tenant data explicitly with `tenant_id` in SQL when using `saas-pack` - Separate payer (`tenant_owner`) from operator (`platform_admin`) on offline billing confirmation - Domain APIs live under `src/Modules/Api/Modules/{Domain}/` (both standalone and SaaS) - Keep `public/` as the only web root; never store private uploads or `.env` under `public/` - Prefer Packagist packs over copying infrastructure code into the host - On live HTTPS set `SESSION_SECURE=true` and `APP_DEBUG=false`; kernel also marks session cookies Secure over TLS