1. Go to this page and download the library: Download novay/minios 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/ */
novay / minios example snippets
// Features::emailVerification(),
namespace App\MiniOS\Todo\Livewire;
use Livewire\Component;
class Todo extends Component
{
public string $newTask = '';
public array $tasks = [];
public function addTask(): void
{
if (trim($this->newTask) !== '') {
$this->tasks[] = trim($this->newTask);
$this->newTask = '';
}
}
public function render()
{
return view('apps.todo');
}
}
namespace App\MiniOS\Todo;
use App\MiniOS\Todo\Livewire\Todo;
use Novay\MiniOS\Contracts\DesktopApp;
use Novay\MiniOS\Support\WindowConfig;
class TodoApp implements DesktopApp
{
public function id(): string
{
return 'todo';
}
public function name(): string
{
return 'Catatan Tugas';
}
public function icon(): string
{
return 'queue-list'; // Nama icon heroicon atau URL gambar
}
public function entry(): string
{
return '/todo';
}
public function routes(): array
{
return ['/todo'];
}
public function isPinned(): bool
{
return true; // Pin ke dock bawah
}
public function component(): ?string
{
return Todo::class;
}
public function window(): WindowConfig
{
return WindowConfig::make()
->size(850, 550) // Ukuran default
->min(500, 350) // Minimal resize
->max(1400, 900); // Maksimal resize
}
}
bash
php artisan minios:install
bash
php artisan migrate
npm run build
bash
php artisan minios:uninstall
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.