PHPackages                             globus-studio/atomic-framework - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. globus-studio/atomic-framework

ActiveProject[HTTP &amp; Networking](/categories/http)

globus-studio/atomic-framework
==============================

Atomic Framework – power in minimalism

v0.1.2(3mo ago)331893GPL-3.0-or-laterPHPPHP &gt;=8.1

Since Apr 8Pushed 1mo ago17 watchersCompare

[ Source](https://github.com/MADEVAL/Atomic-Framework)[ Packagist](https://packagist.org/packages/globus-studio/atomic-framework)[ RSS](/packages/globus-studio-atomic-framework/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (5)Versions (4)Used By (0)

Atomic Framework
================

[](#atomic-framework)

[![PHP](https://camo.githubusercontent.com/88b464e5614cf654f181925115d47b523dc429fcfe41d59565e42e757f306f29/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344382e312d3838393242462e737667)](https://www.php.net/releases/8.1/en.php)[![License: GPL-3.0](https://camo.githubusercontent.com/1c7d7671effd64df0ad09c2aa87a73bfaf614a8ec5e72dbe870c8635b57bb1ce/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d47504c2d2d332e302d2d6f722d2d6c617465722d626c75652e737667)](LICENSE)![Version](https://camo.githubusercontent.com/3ec21c9c276830f9863e8a73a43cfc9a4f5905672be300c716db420707c2ea76/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d302e312e302d6f72616e67652e737667)

*Power in minimalism*

---

A modular, full-featured PHP framework built on top of [Fat-Free Framework](https://fatfreeframework.com/). Atomic provides a structured application skeleton with authentication, queue processing, scheduling, caching, CLI tooling, and more - while staying lightweight and unopinionated.

Application skeleton
--------------------

[](#application-skeleton)

Download the application skeleton for a quick start: [Atomic Application](https://github.com/MADEVAL/Atomic-Framework-Application)

Table of Contents
-----------------

[](#table-of-contents)

- [Features](#features)
- [Requirements](#requirements)
- [Installation](#installation)
- [Project Structure](#project-structure)
- [Configuration](#configuration)
- [Core Concepts](#core-concepts)
    - [Application Lifecycle](#application-lifecycle)
    - [Routing](#routing)
    - [Middleware](#middleware)
    - [Controllers &amp; Models](#controllers--models)
    - [Authentication](#authentication)
    - [Database &amp; Migrations](#database--migrations)
    - [Queue System](#queue-system)
    - [Task Scheduler](#task-scheduler)
    - [Plugins](#plugins)
    - [Event &amp; Hook System](#event--hook-system)
    - [Caching](#caching)
    - [Internationalization](#internationalization)
    - [CLI](#cli)
- [Security](#security)
- [Testing](#testing)
- [Documentation](#documentation)
- [License](#license)

Features
--------

[](#features)

CategoryHighlights**Core**Fluent bootstrap, dual config loaders (`.env` / PHP arrays), preflight environment checks**Auth**Bcrypt password hashing, session binding (IP + User-Agent), dual rate limiting (IP + credential), OAuth 2.0 (Google), Telegram Login Widget, admin impersonation with audit trail**Database**MySQL via PDO, Redis, Memcached - managed through `ConnectionManager` with health-check pings**Migrations**Timestamp-based migration system with batch tracking, rollback support, and plugin migration auto-discovery**Queue**Redis driver (Lua-scripted atomic ops) and Database driver (row-level locks) with retry, TTL, and monitoring**Scheduler**Full POSIX cron expression parser, timezone-aware, timeout protection (300 s)**Cache**Stable Redis, Memcached, database, and folder (filesystem) drivers with cascade fallback, namespace-wide invalidation, and transient storage**Middleware**Parameterized middleware stack with named aliases and route-pattern matching**Events &amp; Hooks**Hierarchical event dispatcher with priorities + WordPress-compatible action/filter layer**Mail**SMTP mailer with multipart/alternative support, DNS deliverability scoring (SPF/DKIM/DMARC)**i18n**Multi-language support with URL prefixing, cookie/session/header detection, automatic `hreflang` generation**Files**CSV parsing/generation, PDF generation with embedded TrueType fonts, XLS/OLE2 reading**CLI**45+ built-in commands: init, migrations, seeding, cache operations, queue management, scheduling**Crypto**NaCl secretbox (libsodium) authenticated encryption with per-message random nonces**Validation**Trait-based model validation with 15+ rule types including UUID, regex, and password entropy**Telemetry**Event tracking and monitoring endpoints**WebSockets**Workerman-based WebSocket server with Redis pub/sub**Plugins**Plugin lifecycle management with dependency checking: WordPress REST, Monopay, RSS Reader, WooCommerce**Theme**Theme manager with asset enqueueing, head metadata, OpenGraph, and path traversal protectionRequirements
------------

[](#requirements)

- **PHP ≥ 8.1** with extensions: `json`, `session`, `mbstring`, `fileinfo`, `pdo`, `pdo_mysql`, `curl`
- **Composer**
- **MySQL / MariaDB** (primary database)
- **Redis** (recommended for cache, queue, sessions, WebSockets)
- **Memcached** (optional, alternative cache backend)
- **libsodium** (bundled with PHP ≥ 7.2 for encryption)

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

[](#installation)

Quick start and install the framework via Composer:

```
composer require globus-studio/atomic-framework
```

Download the application skeleton for a quick start: [Atomic Application](https://github.com/MADEVAL/Atomic-Framework-Application)

Create your project entry point:

```
// public/index.php
