PHPackages                             citomni/infrastructure - 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. citomni/infrastructure

ActiveLibrary[Framework](/categories/framework)

citomni/infrastructure
======================

Lean, cross-mode infrastructure for CitOmni apps: DB (LiteMySQLi), logging (LiteLog), text/i18n (LiteTxt), mail (PHPMailer), and optional contact routes.

v1.0.0.2(2mo ago)002MITPHPPHP ^8.2

Since Oct 3Pushed 1mo agoCompare

[ Source](https://github.com/citomni/infrastructure)[ Packagist](https://packagist.org/packages/citomni/infrastructure)[ Docs](https://github.com/citomni/infrastructure)[ GitHub Sponsors](https://github.com/LarsGMortensen)[ Fund](https://ko-fi.com/)[ RSS](/packages/citomni-infrastructure/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (7)Versions (4)Used By (2)

CitOmni Infrastructure
======================

[](#citomni-infrastructure)

Lean, cross-mode infrastructure for CitOmni apps. Predictable service maps, deterministic config (last-wins), no magic. Ultra-fast PHP 8.2+, side-effect free, designed for **HTTP *and* CLI** runtimes. ♻️

---

Highlights
----------

[](#highlights)

- **Shared services** available in both HTTP &amp; CLI (`db`, `log`, `txt`, `mailer`)
- **Deterministic boot** -&gt; vendor baseline -&gt; providers -&gt; app (**last wins**)
- **No scanning** -&gt; `$this->app->{id}` resolves instantly (cacheable maps)
- **Prod-friendly** -&gt; config/service maps can be precompiled by the App
- **Infrastructure focus** -&gt; DB (LiteMySQLi), logging, mail (PHPMailer), text/i18n

---

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

[](#requirements)

- PHP **8.2+**
- Extensions:

    - `ext-json` (standard)
    - `ext-iconv` or `ext-mbstring` (mailer UTF-8 normalization; one of them is used)
    - **`ext-gd`** (required for the optional `/captcha` route)
    - Freetype (optional) enables TTF text in captcha (falls back to bitmap fonts if missing)
- OPcache recommended in production

---

Install
-------

[](#install)

```
composer require citomni/infrastructure
composer dump-autoload -o
```

Ensure your app is PSR-4 mapped:

```
{
	"autoload": { "psr-4": { "App\\": "src/" } }
}
```

Enable the provider in **`/config/providers.php`**:

```
