Skip to content
EasePHP Core Library
PHP Makefile Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
Examples
debian
i18n
nbproject
src/Ease
tests
.gitattributes
.gitignore
.scrutinizer.yml
.travis.yml
Dockerfile
LICENSE
Makefile
README.md
Vagrantfile
bootstrap-centos.sh
codeception.yml
composer.json
ease-core.dsc
ease-core.spec
phpunit.xml
project-logo.png
project-logo.svg
project-logo.xcf
release.sh

README.md

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

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


Installation

Download https://github.com/VitexSoftware/ease-core/archive/master.zip or:

Composer:

composer require vitexsoftware/ease-core

Linux

For Debian, Ubuntu & friends please use repo:

wget -O - http://v.s.cz/info@vitexsoftware.cz.gpg.key|sudo apt-key add - echo deb http://v.s.cz/ stable main | sudo tee /etc/apt/sources.list.d/vitexsoftware.list sudo apt update sudo apt install ease-core

In this case please add this to your app composer.json:

json "require": { "ease-core": "*" }, "repositories": [ { "type": "path", "url": "/usr/share/php/EaseCore", "options": { "symlink": true } } ]

Docker:

To get Docker image:

docker pull vitexsoftware/ease-core

Framework Constants

  • EASE_APPNAME - common name of application. Mainly used in logs.
  • 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)
  • LOG_DIRECTORY - destination for ToFile logger

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

At first you need initialise create sql user & database with login and password from testing/phinx.yml and initialise testing database by phinx migrate command:

make phpunit

Building

Simply run make deb

Links

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

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

Apigen Docs: https://www.vitexsoftware.cz/ease-core/

You can’t perform that action at this time.