PHP code example of empathy-php / litengine
1. Go to this page and download the library: Download empathy-php/litengine library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
empathy-php / litengine example snippets
unction Empathy\Engine\dn;
$form = dn ('System.Windows.Forms.Form');
$button = dn ('System.Windows.Forms.Button');
$form->text = 'Example app';
$button->parent = $form;
$button->left = 16;
$button->top = 16;
$button->width = 96;
$button->height = 32;
$button->text = 'Click me!';
$button->on ('click', function ()
{
dn ('System.Windows.Forms.MessageBox')->show ('Hello, World!');
});
$form->showDialog ();
composer
json
{
"scripts": {
"empathy-run": "vendor/empathy-php/litecore/empathy.exe vendor/empathy-php/core/script.php"
}
}