No description
Find a file
2019-11-12 16:59:14 +01:00
.kdev4 Unit Tests update 2018-05-09 19:10:21 +02:00
debian Fix common UnitTest parent class 2019-05-24 17:47:40 +02:00
Examples HTML Mail Example addded 2019-11-12 16:59:14 +01:00
i18n Get List of Availble localed 2018-06-27 16:29:34 +02:00
nbproject Duplicity Removed 2019-05-13 19:36:05 +02:00
src/Ease try to send html mails 2019-11-12 16:23:58 +01:00
tests Unit test Update 2019-08-08 22:16:45 +02:00
.gitattributes (Unit) Testing JQUery classes 2016-02-20 01:17:59 +01:00
.gitignore ORM Moved to SQL namespace 2018-02-28 19:49:11 +01:00
.phpunit.result.cache Log mailer now add hyper links into Email 2018-08-23 10:24:01 +02:00
.scrutinizer.yml ORM Moved to SQL namespace 2018-02-28 19:49:11 +01:00
.travis.yml Symfony Insight suggestions accepted 2019-05-13 20:12:19 +02:00
bootstrap-centos.sh Basic support for RPM package build added 2018-01-20 17:04:53 +01:00
codeception.yml Try to use codeception tests 2017-12-19 13:25:23 +01:00
composer.json Confilct with ease-core added to Composer.json 2019-06-13 13:07:14 +02:00
Dockerfile Add Support for Html Table Footer 2018-07-05 22:36:32 +02:00
ease-framework.dsc Perepare to use OpenBuildService.org 2018-11-19 01:23:13 +01:00
ease-framework.kdev4 Unit Tests update 2018-05-09 19:10:21 +02:00
ease-framework.spec Perepare to use OpenBuildService.org 2018-11-18 21:09:22 +01:00
LICENSE Initial commit 2013-11-24 11:14:07 -08:00
Makefile Commit Before Branching 2019-01-11 21:18:45 +01:00
phpunit.xml Locale support moved to dedicated class Ease\Locale 2018-06-27 13:29:10 +02:00
project-logo.png End Of Year 2017 Commit 2017-12-31 23:42:44 +01:00
project-logo.svg End Of Year 2017 Commit 2017-12-31 23:42:44 +01:00
project-logo.xcf Project logo added 2016-09-15 07:14:35 +02:00
README.md Badges Added 2019-10-28 03:20:59 +01:00
release.sh Fixed documentation placing on debian 2016-09-24 23:32:48 +02:00
Vagrantfile Basic support for RPM package build added 2018-01-20 17:04:53 +01:00

EasePHP Framework Logo

EasePHP Framework

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

Source Code Latest Version Software License Build Status Total Downloads Docker pulls Latest stable SensioLabsInsight

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


Installation

Download https://github.com/VitexSoftware/EaseFramework/archive/master.zip or use

Composer:

composer require vitexsoftware/ease-framework

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-framework

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

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

Docker:

To get Docker image:

docker pull vitexsoftware/easephpframework

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 "console|syslog"
  • EASE_EMAILTO - recipient for Ease/Logger/ToMail
  • EASE_SMTP - Custom SMTP Settings (JSON Encoded)
  • DB_TYPE - pgsql|mysql|sqlite|...
  • DB_HOST - localhost is default
  • DB_PORT - database port
  • DB_DATABASE - database schema name
  • DB_USERNAME - database user login name
  • DB_PASSWORD - database user password
  • DB_SETUP - database setup command (executed directly after connect)

Example

Twitter Bootstrap page with simple Form

$oPage = new \Ease\TWB\WebPage('Page title');
$form = $oPage->addItem( new \Ease\TWB\Form('ExampleForm') );
$form->addItem(new \Ease\Html\InputTextTag('Name'));
$form->addItem(new \Ease\TWB\SubmitButton('OK', 'success') );
$oPage->draw();

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:

composer update
cd tests
mysqladmin -u root -p create easetest
mysql -u root -p -e "GRANT ALL PRIVILEGES ON easetest.* TO easetest@localhost IDENTIFIED BY 'easetest'"
sudo -u postgres bash -c "psql -c \"CREATE USER easetest WITH PASSWORD 'easetest';\""
sudo -u postgres bash -c "psql -c \"create database easetest with owner easetest encoding='utf8' template template0;\""
../vendor/bin/phinx migrate -e development 
../vendor/bin/phinx migrate -e testing  

Building

Simply run make deb

Links

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

GitHub: https://github.com/VitexSoftware/EaseFramework

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

Modular & Lightweight successor library: https://github.com/VitexSoftware/ease-core