1. Go to this page and download the library: Download godfreybwaira/shani 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/ */
godfreybwaira / shani example snippets
namespace apps\demo\v1\modules\students\logic\controllers\get {
use shani\launcher\App;
final class Hello
{
private readonly App $app;
public function __construct(App $app)
{
$this->app = $app;
}
/**
* Display school from Shani.
*/
public function world()
{
//sending output to user agent using default view file (world.php)
$this->app->render(null);
}
}
}
<h1>Hello From Shani</h1>
<php
namespace apps\demo\v1\config {
use shani\contracts\BasicPresets;
use shani\launcher\App;
final class DevSettings extends BasicPresets
{
public function __construct(App $app, array &$configurations)
{
parent::__construct($app, $configurations);
}
//Add all unimplemented methods here
}
}
bash
$ php index.php
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.