PHPackages                             mrpc/pramnosframework - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. mrpc/pramnosframework

ActiveLibrary[Framework](/categories/framework)

mrpc/pramnosframework
=====================

The Pramnos Framework.

1.1(2mo ago)223311MITPHPPHP &gt;=7.4

Since Apr 15Pushed 1w ago1 watchersCompare

[ Source](https://github.com/mrpc/PramnosFramework)[ Packagist](https://packagist.org/packages/mrpc/pramnosframework)[ Docs](https://github.com/mrpc/PramnosFramework)[ RSS](/packages/mrpc-pramnosframework/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (2)Dependencies (11)Versions (5)Used By (1)

Pramnos Framework
=================

[](#pramnos-framework)

Pramnos Framework is a comprehensive PHP MVC framework designed for building robust web applications. It combines proven design patterns with modern development practices, providing a solid foundation for secure, scalable, and maintainable applications.

📚 Documentation
---------------

[](#-documentation)

For comprehensive documentation, please refer to:

- **[Framework Guide](docs/Pramnos_Framework_Guide.md)** - Complete guide to the framework architecture, controllers, views, and best practices
- **[Database API Guide](docs/Pramnos_Database_API_Guide.md)** - Detailed documentation on database operations and patterns
- **[Cache System Guide](docs/Pramnos_Cache_Guide.md)** - Caching implementation and usage
- **[Authentication Guide](docs/Pramnos_Authentication_Guide.md)** - User authentication and session management
- **[Console Commands Guide](docs/Pramnos_Console_Guide.md)** - Command-line tools and utilities
- **[Logging System Guide](docs/Pramnos_Logging_Guide.md)** - Comprehensive logging, analytics, and monitoring
- **[Document &amp; Output Guide](docs/Pramnos_Document_Output_Guide.md)** - Multi-format output, document generation, and asset management
- **[Theme System Guide](docs/Pramnos_Theme_Guide.md)** - Template system, widgets, menus, and theming best practices

Requirements
------------

[](#requirements)

- Docker and Docker Compose (Recommended for development)
- PHP 7.4 or higher (if running natively)
- ext-mbstring extension
- ext-pdo extension (for database support)
- Optional: Redis/Memcached for caching

Installation
------------

[](#installation)

The recommended way to start a new project is using the **Pramnos Application**, which provides a one-line setup experience:

```
composer create-project mrpc/pramnos-application my-app
```

Alternatively, you can manually add the framework as a dependency to an existing project:

```
mkdir my-app && cd my-app
composer require mrpc/pramnosframework
php vendor/bin/pramnos init
```

The `init` command will guide you through the setup with smart defaults (e.g., automatic namespace generation and database naming).

✨ Key Features
--------------

[](#-key-features)

### 🏗️ Architecture

[](#️-architecture)

- **MVC Design Pattern** - Clean separation of concerns
- **Component-Based** - Modular and reusable components
- **Namespace Support** - PSR-4 compliant autoloading
- **Factory Pattern** - Centralized object creation and management

### 🔐 Authentication &amp; Security

[](#-authentication--security)

- **JWT Token Support** - Secure token-based authentication
- **Session Management** - Robust session handling with multiple storage backends
- **Permission System** - Granular access control and user permissions
- **OAuth2 Support** - Built-in OAuth2 server capabilities
- **CSRF Protection** - Request validation and security
- **Nonce-based CSP** - Automatic Content Security Policy with per-request nonces

### 💾 Database &amp; Caching

[](#-database--caching)

- **Database Abstraction** - Support for MySQL, PostgreSQL
- **Query Builder** - Secure parameterized queries with printf-style formatting
- **Multiple Cache Backends** - Redis, Memcached, File-based caching
- **Database Migrations** - Version-controlled database schema changes
- **Connection Pooling** - Efficient database connection management

### 🌐 Web Features

[](#-web-features)

- **RESTful Routing** - Flexible URL routing with parameter binding
- **API Framework** - Built-in REST API support with versioning
- **Multiple Output Formats** - JSON, XML, HTML, PDF, RSS
- **Theme System** - Pluggable theming with template inheritance
- **Multilingual Support** - Complete internationalization framework

### 🛠️ Developer Tools

[](#️-developer-tools)

- **Console Commands** - Code generators and maintenance tools
- **Logging System** - Structured logging with multiple handlers
- **Debug Tools** - Built-in debugging and profiling utilities
- **Testing Support** - PHPUnit integration and test helpers

### 📦 Additional Components

[](#-additional-components)

- **Media Handling** - Image processing and file management
- **Email System** - SMTP support with template rendering
- **Geolocation** - Geographic utilities and distance calculations
- **HTML Utilities** - Form builders, datatables, and UI components

Directory Structure
-------------------

[](#directory-structure)

```
src/Pramnos/
├── Addon/         # Extension modules
├── Application/   # Application core
├── Auth/          # Authentication components
├── Cache/         # Caching utilities
├── Console/       # CLI commands
├── Database/      # Database interaction
├── Document/      # Document handling
├── Email/         # Email services
├── Filesystem/    # File operations
├── Framework/     # Core framework classes
├── General/       # General utilities
├── Geolocation/   # Geolocation services
├── Html/          # HTML utilities
├── Http/          # HTTP request/response
├── Interfaces/    # Framework interfaces
├── Logs/          # Logging functionality
├── Media/         # Media handling
├── Routing/       # URL routing
├── Theme/         # Theming system
├── Translator/    # Translation services
├── User/          # User management
└── helpers.php    # Global helper functions

```

🚀 Quick Start
-------------

[](#-quick-start)

### Basic Application Setup

[](#basic-application-setup)

```
