Object oriented PHP Framework for easy&fast writing small/middle sized apps.
Download https://github.com/VitexSoftware/EaseFramework/archive/master.zip or use
composer require vitexsoftware/ease-framework
For Debian, Ubuntu & friends please use repo:
wget -O - http://v.s.cz/[email protected]|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
}
}
]To get Docker image:
docker pull vitexsoftware/easephpframework
$oPage = new EaseTWBWebPage('Page title');
$form = $oPage->addItem( new EaseTWBForm('ExampleForm') );
$form->addItem(new EaseHtmlInputTextTag('Name'));
$form->addItem(new EaseTWBSubmitButton('OK', 'success') );
$oPage->draw();You can use any combination of this logging modules:
define('EASE_LOGGER', 'console|syslog');
$logger = new EaseSand();
$logger->addStatusMessage('Error Message', 'error');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
Simply run make deb
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