PHPackages                             vitexsoftware/ease-core - 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. vitexsoftware/ease-core

ActiveLibrary[Framework](/categories/framework)

vitexsoftware/ease-core
=======================

An PHP Framework for writing Applications

v1.50.1(4mo ago)589.2k↓23.9%3[3 PRs](https://github.com/VitexSoftware/php-ease-core/pulls)9MITPHPPHP &gt;=7CI passing

Since Mar 3Pushed 2w ago2 watchersCompare

[ Source](https://github.com/VitexSoftware/php-ease-core)[ Packagist](https://packagist.org/packages/vitexsoftware/ease-core)[ Docs](http://v.s.cz/ease.php)[ Patreon](https://www.patreon.com/VitexSoftware)[ RSS](/packages/vitexsoftware-ease-core/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (10)Dependencies (10)Versions (45)Used By (9)

[![EasePHP Framework Logo](ease-core-social-preview.png?raw=true "Project Logo")](ease-core-social-preview.png?raw=true)

EasePHP Framework Core
======================

[](#easephp-framework-core)

Object oriented PHP Framework for easy&amp;fast writing small/middle sized apps.

[![Latest Version](https://camo.githubusercontent.com/62735a6196b7293c4fc052cdbdd144457d29e3722af459066b75cff0cc59a2a7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f5669746578536f6674776172652f656173652d636f72652e7376673f7374796c653d666c61742d737175617265)](https://github.com/VitexSoftware/ease-core/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/VitexSoftware/ease-core/blob/master/LICENSE)[![Code Coverage](https://camo.githubusercontent.com/f17d07255c0dd25963881ca986dc398c1ec5bc75a76f129eaa9ea2aaa9ee0f2d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5669746578536f6674776172652f656173652d636f72652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/VitexSoftware/ease-core/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/1a2beddf430655b96cfb8747701c5313cc9e12a119a105416bdc14f226c21039/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5669746578536f6674776172652f656173652d636f72652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/VitexSoftware/ease-core/?branch=master)[![Build Status](https://camo.githubusercontent.com/54812e41a38ad870c695ef468849cc41ea65bc0fa1b7f05e733b1e7154c596be/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5669746578536f6674776172652f656173652d636f72652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/VitexSoftware/ease-core/build-status/master)[![Code Intelligence Status](https://camo.githubusercontent.com/09849862e498d4adea76f0b3d96bbc87e171fe74bd210df77b9d5d367fcc7f0c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5669746578536f6674776172652f656173652d636f72652f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d6173746572)](https://scrutinizer-ci.com/code-intelligence)[![Total Downloads](https://camo.githubusercontent.com/7efda5895dfdb0ec70c494444a5dafaa81184544532472a890375ca2a94ed165/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7669746578736f6674776172652f656173652d636f72652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vitexsoftware/ease-core)[![Latest stable](https://camo.githubusercontent.com/8ac2ab1a12d3846fa2103a2a228c744ba6242b46d9a114c4d869d3ec095d7729/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7669746578736f6674776172652f656173652d636f72652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vitexsoftware/ease-core)

[![PHPUnit](https://github.com/VitexSoftware/php-ease-core/workflows/PHPUnit/badge.svg)](https://github.com/VitexSoftware/php-ease-core/workflows/PHPUnit/badge.svg)[![Ubuntu Packaging](https://github.com/VitexSoftware/php-ease-core/workflows/Ubuntu%20Packaging/badge.svg)](https://github.com/VitexSoftware/php-ease-core/workflows/Ubuntu%20Packaging/badge.svg)

[![Latest Stable Version](https://camo.githubusercontent.com/c202006023b28de8399dc09a0c14eadcf5c701701264f2d2fd6b793f3991bd56/68747470733a2f2f706f7365722e707567782e6f72672f7669746578736f6674776172652f656173652d636f72652f762f737461626c65)](https://packagist.org/packages/vitexsoftware/ease-core)[![Total Downloads](https://camo.githubusercontent.com/751880f43c7cc08040df4a58b29ff9e7017476f553845cba6de034b010df925b/68747470733a2f2f706f7365722e707567782e6f72672f7669746578736f6674776172652f656173652d636f72652f646f776e6c6f616473)](https://packagist.org/packages/vitexsoftware/ease-core)[![Latest Unstable Version](https://camo.githubusercontent.com/6e4dc316f0d7c7bc99e9227b7584706684c06b3a9bc877e1e8be260d8f02caa0/68747470733a2f2f706f7365722e707567782e6f72672f7669746578736f6674776172652f656173652d636f72652f762f756e737461626c65)](https://packagist.org/packages/vitexsoftware/ease-core)[![License](https://camo.githubusercontent.com/e3fda46a4bcec5b24aa0fc746534c2b31d9abeffaf00054fe194a1dc6bf2b6ec/68747470733a2f2f706f7365722e707567782e6f72672f7669746578736f6674776172652f656173652d636f72652f6c6963656e7365)](https://packagist.org/packages/vitexsoftware/ease-core)[![Monthly Downloads](https://camo.githubusercontent.com/7ff1ce9a2d36395a9cb6e5eb7ce9baac50189d2331cce80f33d778b8e914ff6d/68747470733a2f2f706f7365722e707567782e6f72672f7669746578736f6674776172652f656173652d636f72652f642f6d6f6e74686c79)](https://packagist.org/packages/vitexsoftware/ease-core)[![Daily Downloads](https://camo.githubusercontent.com/54eb52e8706705ff0ec61abe2b5572611a7af370d68451d8a1ce4fc49ebfc170/68747470733a2f2f706f7365722e707567782e6f72672f7669746578736f6674776172652f656173652d636f72652f642f6461696c79)](https://packagist.org/packages/vitexsoftware/ease-core)

---

Overview
--------

[](#overview)

EasePHP Framework Core is a small, dependency-light runtime library for building CLI and web applications in PHP. It provides:

- a set of base classes for your domain objects (Atom ➝ Molecule ➝ Sand ➝ Brick),
- a flexible, multi-sink logging pipeline (memory, console, file, syslog, std, eventlog),
- a simple but powerful configuration layer (constants/ENV/.env/.json) via Ease\\Shared,
- gettext-based internationalization helpers (Ease\\Locale),
- user abstractions (Ease\\Anonym, Ease\\User), and
- pragmatic utilities (Ease\\Functions) and a Mailer built on PEAR Mail/Mail\_mime.

Works standalone or as the core of the broader EasePHP ecosystem. Autoloading follows PSR-4:

- "Ease\\" ➝ src/Ease
- "Ease\\Logger\\" ➝ src/Ease/Logger

Key features
------------

[](#key-features)

- Base object model
    - Atom: minimal base with object naming and draw().
    - Molecule: property setup helpers from options/ENV/constants.
    - Sand: data holder with typed helpers; integrates logging via trait.
    - Brick: adds record identity (id/name/array/reuse) through recordkey trait.
- Logging
    - Regent aggregator dispatches to memory/console/file/syslog/std/eventlog; configure via EASE\_LOGGER (pipe-separated).
    - Console logger features internationalized date formatting with graceful fallback for maximum reliability.
    - Comprehensive error handling ensures logging never crashes your application.
- Internationalization (i18n)
    - Gettext domain binding, locale selection (request/session/browser/ENV), and helper APIs.
- Configuration
    - Shared::cfg reads constants then ENV; loadConfig supports .json and .env.
- Users and identity
    - Anonymous and User implementations with login/password helpers and Gravatar.
- Utilities
    - URL helpers, transliteration, AES-256-CBC encrypt/decrypt, randoms, human-readable sizes, UUIDv4, JSON/serialization checks, namespace class loader, etc.

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

[](#requirements)

- PHP &gt;= 7.0 (tested up to PHP 8.4)
- ext-intl (optional but recommended for internationalized date formatting)
- PEAR packages: pear/mail, pear/mail\_mime (Mailer)

**Note:** The framework gracefully handles missing or misconfigured internationalization extensions.

Quick start
-----------

[](#quick-start)

```
