php-ease-core

php-ease-core 0.24

 pool/bionic/main/p/php-ease-core/php-ease-core_0.24_all.deb php-ease-core
EasePHP Framework
Filename pool/bionic/main/p/php-ease-core/php-ease-core_0.24_all.deb
Version0.24
Age in days17
Release date2025 08. 27.
Size23.85 KB
id29
Namephp-ease-core
Package
Appname
Essential
Vendor
License
Distributionbionic
Suitemain
Source
Architecturebinary-i386
MultiArch
MaintainerVítězslav Dvořák
InstalledSize131
Dependsphp-mail , php-mail-mime , composer
PreDepends
Breaks
Enhances
Sectionweb
Priorityoptional
DescriptionEasePHP Framework
LongDescriptioncommon classes foe Ease Framework.
AutoBuiltPackage
Filenamepool/bionic/main/p/php-ease-core/php-ease-core_0.24_all.deb
MD5sum0a2b2ec38485ef49169ab63ea9e1ac43
SHA16028e275f924edacf41a1611cfa0ad8d9872fae3
SHA2561aab866d2ed09d595163bc8211a4ebc9b5439674c4f3abd3ebde249e9f48efea
SHA512ef891a5e905438797aef9a37cca146a907ba5e8bf21d3cb92e1b4204ca41698e9b2fbbf04dbe94246bce014ab9c5056f2f8025cf9538d8743f5ca13c2b81bebd
Size24420
Auto-Built-Package
Conflictsease-framework
Homepagehttps://github.com/VitexSoftware/ease-core
Provides
Suggestsphp-ease-html , php-ease-twbootstrap , php-ease-twbootstrap4
Existing
fileMtime2025-08-27 01:05:30
created2021-03-20 03:24:26
updated2025-08-26 23:05:30
./
./usr/
./usr/share/
./usr/share/doc/
./usr/share/doc/php-ease-core/
./usr/share/doc/php-ease-core/README.Debian203
./usr/share/doc/php-ease-core/changelog.gz458
./usr/share/doc/php-ease-core/copyright422
./usr/share/php/
./usr/share/php/Ease/
./usr/share/php/Ease/Anonym.php3161
./usr/share/php/Ease/Atom.php3260
./usr/share/php/Ease/Brick.php1489
./usr/share/php/Ease/Exception.php973
./usr/share/php/Ease/Functions.php13453
./usr/share/php/Ease/Locale.php24300
./usr/share/php/Ease/Logger/
./usr/share/php/Ease/Logger/Loggingable.php409
./usr/share/php/Ease/Logger/Message.php2108
./usr/share/php/Ease/Logger/Regent.php3785
./usr/share/php/Ease/Logger/ToConsole.php4030
./usr/share/php/Ease/Logger/ToEmail.php4390
./usr/share/php/Ease/Logger/ToEventlog.php825
./usr/share/php/Ease/Logger/ToFile.php5368
./usr/share/php/Ease/Logger/ToMemory.php2563
./usr/share/php/Ease/Logger/ToStd.php4439
./usr/share/php/Ease/Logger/ToSyslog.php1691
./usr/share/php/Ease/Mailer.php6300
./usr/share/php/Ease/Molecule.php1907
./usr/share/php/Ease/RecordKey.php1860
./usr/share/php/Ease/Sand.php3473
./usr/share/php/Ease/Shared.php7422
./usr/share/php/Ease/User.php10895
./usr/share/php/Ease/composer.json661
./
./usr/
./usr/share/
./usr/share/doc/
./usr/share/doc/php-ease-core/
./usr/share/doc/php-ease-core/README.Debian557
./usr/share/doc/php-ease-core/changelog.gz723
./usr/share/doc/php-ease-core/copyright485
./
./usr/
./usr/share/
./usr/share/doc/
./usr/share/doc/php-ease-core/
./usr/share/doc/php-ease-core/README.Debian203
./usr/share/doc/php-ease-core/changelog.gz466
./usr/share/doc/php-ease-core/copyright422
./usr/share/php/
./usr/share/php/Ease/
./usr/share/php/Ease/Anonym.php3161
./usr/share/php/Ease/Atom.php3260
./usr/share/php/Ease/Brick.php1489
./usr/share/php/Ease/Exception.php973
./usr/share/php/Ease/Functions.php13453
./usr/share/php/Ease/Locale.php24300
./usr/share/php/Ease/Logger/
./usr/share/php/Ease/Logger/Loggingable.php409
./usr/share/php/Ease/Logger/Message.php2108
./usr/share/php/Ease/Logger/Regent.php3785
./usr/share/php/Ease/Logger/ToConsole.php4030
./usr/share/php/Ease/Logger/ToEmail.php4390
./usr/share/php/Ease/Logger/ToEventlog.php825
./usr/share/php/Ease/Logger/ToFile.php5368
./usr/share/php/Ease/Logger/ToMemory.php2563
./usr/share/php/Ease/Logger/ToStd.php4439
./usr/share/php/Ease/Logger/ToSyslog.php1691
./usr/share/php/Ease/Mailer.php6300
./usr/share/php/Ease/Molecule.php1907
./usr/share/php/Ease/RecordKey.php1860
./usr/share/php/Ease/Sand.php3473
./usr/share/php/Ease/Shared.php7422
./usr/share/php/Ease/User.php10895
./usr/share/php/Ease/composer.json661
./
./usr/
./usr/share/
./usr/share/doc/
./usr/share/doc/php-ease-core/
./usr/share/doc/php-ease-core/README.Debian557
./usr/share/doc/php-ease-core/changelog.gz723
./usr/share/doc/php-ease-core/copyright485
<>

EasePHP Framework Logo

EasePHP Framework Core

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

Latest Version Software License Code Coverage Scrutinizer Code Quality Build Status Code Intelligence Status Total Downloads Latest stable

PHPUnit Ubuntu Packaging

Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads Daily Downloads


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

  • 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).
  • 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

  • PHP >= 7.0 (tested up to PHP 8.4)
  • ext-intl
  • PEAR packages: pear/mail, pear/mail_mime (Mailer)

Quick start

<?php
require __DIR__.'/vendor/autoload.php';

// Minimal config
define('EASE_APPNAME', 'MyApp');
// Send logs to console and syslog (combine with "|")
define('EASE_LOGGER', 'console|syslog');

$logger = new \Ease\Sand();
$logger->addStatusMessage('MyApp started', 'info');

// i18n (optional): bind domain in ./i18n or /usr/share/locale
new \Ease\Locale('en_US', './i18n', 'php-vitexsoftware-ease-core');
$logger->addStatusMessage(_('Ready to work'), 'success');

// Mail (optional): configure sender via constants or ENV
// define('EASE_FROM', 'no-reply@example.com');
// define('EASE_SMTP', json_encode([
//     'host' => 'smtp.example.com', 'auth' => true, 'username' => '...','password' => '...'
// ]));
// $mailer = new \Ease\Mailer('user@example.com', 'Hello', 'Message body');
// $mailer->send();

Configuration

Common ways to configure EaseCore:

  • PHP constants (highest precedence)

    <?php
    define('EASE_APPNAME', 'MyApp');
    define('EASE_LOGGER', 'console|syslog');
    define('EASE_FROM', 'no-reply@example.com');
    define('EASE_SMTP', json_encode([
        'host' => 'smtp.example.com',
        'auth' => true,
        'username' => 'smtp-user',
        'password' => 'secret',
    ]));
    
  • Environment variables

    export EASE_APPNAME=MyApp
    export EASE_LOGGER=console|syslog
    export EASE_FROM=no-reply@example.com
    export EASE_SMTP='{"host":"smtp.example.com","auth":true,"username":"smtp-user","password":"secret"}'
    
  • .env or JSON file

    <?php
    // Load .env and define UPPERCASE constants from it:
    \Ease\Shared::singleton()->loadConfig(__DIR__.'/.env', true);
    // Or load JSON without defining constants (values accessible via Shared::cfg()):
    \Ease\Shared::singleton()->loadConfig(__DIR__.'/config.json', false);
    

Frequently used keys: EASE_APPNAME, EASE_LOGGER, EASE_FROM, EASE_SMTP, LOG_DIRECTORY, LOG_FLAG, LOG_FACILITY.

Installation

Composer:

composer require vitexsoftware/ease-core

Docker:

This repository includes a minimal Docker build primarily for packaging/distribution (it places the library under /usr/share/php/Ease*). For application development, prefer installing via Composer.

  • Build image locally:

    make dimage

  • Note: The image is not intended as a full runtime base; it contains the library files for packaging purposes.

Framework Constants

  • EASE_APPNAME - common name of application. Mainly used in logs. (APP_NAME is also recoginsed)
  • EASE_LOGGER - one of memory,console,file,syslog,email,std,eventlog or combination eg. "console|syslog"
  • EASE_EMAILTO - recipient email address for Ease/Logger/ToMail
  • EASE_SMTP - Custom SMTP Settings (JSON Encoded)
  • EASE_FROM - Sent mail sender address
  • LOG_DIRECTORY - destination for ToFile logger
  • LOG_OPTION - syslog option argument
  • LOG_FACILITY - syslog facility argument

Logging

You can use any combination of this logging modules:

  • memory - log to array in memory
  • console - log to ansi sequence capable console
  • file - log to specified file
  • syslog - log to linux syslog service
  • email - send all messages to constant('EASE_EMAILTO') at end
  • std - write messages to stdout/stderr
  • eventlog - log to Windows eventlog
  define('EASE_LOGGER', 'console|syslog');
  $logger = new \Ease\Sand();
  $logger->addStatusMessage('Error Message', 'error');

Testing

Run the PHPUnit test suite locally:

composer install
make phpunit

When installed from the Debian dev package, tests (including i18n assets) can be executed with:

phpunit --bootstrap /usr/share/php/EaseCore/Test/Bootstrap.php \
  --configuration /usr/share/php/EaseCore/Test/phpunit.xml

Building

Simply run make deb

Links

Homepage: https://www.vitexsoftware.cz/ease.php

GitHub: https://github.com/VitexSoftware/ease-core

phpDocumentor: http://vitexsoftware.cz/php-ease-core/

VersionDownload/Install countLast hit
60.92019-10-11 09:48:55
20.72019-06-05 22:47:03
10.52019-03-04 00:51:40