Tabla de Contenidos

BASIS

This project, BASIS, is a modular, multi-tenant enterprise platform built with PHP. It implements a robust PSR-7/PSR-15 compliant architecture with advanced security features and modern frontend integration via Hotwire Turbo.

Based on the provided UML sequence diagram and codebase, here is a structured introduction to the project:

1. HTTP Request Pipeline & Middleware Stack

The application uses a layered middleware pipeline to process requests securely before they reach the business logic:

2. Advanced Authentication & Security Flow

The platform implements a sophisticated, multi-layered authentication system:

3. Modern Frontend Integration (Hotwire Turbo)

Instead of building a heavy SPA, the project uses Hotwire Turbo for a fast, modern UX:

4. Modular & Multi-Tenant Architecture

The project is structured as a monorepo containing distinct “apps” and “modules”:

BASIS Core Overview

BASIS Core is a modular framework and identity kernel for the BASIS ecosystem (which includes applications like Operand, Nexus, Vector, Codex, and Axis). It serves as a central authentication and modular platform for enterprise applications.

Key Modules and Their Functions

1. Core Modules (in `/core/` directory)

2. Application Modules (in `/modules/` directory)

3. Vertical Applications (in `/apps/` directory)

4. Shared Components (in `/shared/` directory)

**Code Organization**

1. Directory Structure

The project follows a clear hierarchical structure:

2. Configuration System

3. Module System

4. Authentication System

5. Security Features

6. API Design

7. Frontend Components

Technology Stack

Integration Points

Notable Features

  1. Modular Branding: CSS variables and semantic aliases for consistent theming
  2. Dynamic Menu System: Menu injection through manifests
  3. Multi-tenant Support: Tenant mapping and isolation
  4. Audit Trail: Comprehensive logging across modules
  5. Internationalization: Built-in support for multiple languages

This architecture BASIS Core as a robust, extensible platform for building enterprise applications with strong authentication, modular design, and comprehensive security features.