Add dependency to composer.json:
"widget-o/widget-o-php": "dev-master"
After installing dependencies in the project prepare index.php like:
<?php
require 'Widgeto/Widgeto.php';
$widgeto = new \Widgeto\Widgeto();
$widgeto->run();
Create a database configuration file under config/database.json
{
"driver": "mysql",
"host": "localhost",
"username": "username",
"password": "*******",
"database": "database"
}
Run database creation script located in the sql folder. Default user is admin and password is widgeto.
Run phpunit:
phpunit