Ease-Core copy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Vítězslav Dvořák f37ebac785 Merge origin/main into main 2 months ago
.github Set default LOCALE/LANGUAGE to make test work properly 8 months ago
Examples Strict types & PHP8 compatibility added 11 months ago
debian Install php-dom as dev dependency 2 months ago
i18n phpunit now run on buster 7 months ago
src/Ease Merge origin/main into main 2 months ago
tests Code Coverage at 90% 2 months ago
.gitattributes Initial Commit 3 years ago
.gitignore NetBeans project direcory removal 11 months ago
.scrutinizer.yml do not blame scrutinizer by debian/tests 7 months ago
.travis.yml Travis upsdate 2 3 years ago
Dockerfile global rename ease-framework to ease-core 3 years ago
Jenkinsfile Php is broken in Bookworm now 2 months ago
LICENSE Create LICENSE 3 years ago
Makefile test source code before packing 7 months ago
README.md two space removed from README 7 months ago
Vagrantfile Initial Commit 3 years ago
bootstrap-centos.sh Initial Commit 3 years ago
codeception.yml Initial Commit 3 years ago
composer.json Update for current pear/mail versions 5 months ago
ease-core-social-preview.png Logo updated 1 year ago
ease-core.dsc Initial Commit 3 years ago
ease-core.spec global rename ease-framework to ease-core 3 years ago
php-vitexsoftware-ease-core-dev.svg v17 release 8 months ago
php-vitexsoftware-ease-core-doc.svg v17 release 8 months ago
phpunit.xml Strict types & PHP8 compatibility added 11 months ago
project-logo.png Initial Commit 3 years ago
project-logo.svg Code reformat 2 years ago
project-logo.xcf Initial Commit 3 years ago
release.sh global rename ease-framework to ease-core 3 years ago
social-preview.xcf v1.9 release 1 year ago

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

PHPUnit Ubuntu Packaging

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


Installation

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

Composer:

composer require vitexsoftware/ease-core

Linux

For Debian, Ubuntu & friends please use repo:

sudo apt install lsb-release wget
echo "deb http://repo.vitexsoftware.cz $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/vitexsoftware.list
sudo wget -O /etc/apt/trusted.gpg.d/vitexsoftware.gpg http://repo.vitexsoftware.cz/keyring.gpg
sudo apt update
sudo apt install php-vitexsoftware-ease-core 

You can also install optional packages php-vitexsoftware-ease-core-dev and php-vitexsoftware-ease-core-doc

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

json "require": { "deb/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. (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)
  • 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

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

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