PHP code example of jcombee / nativephp-win-pre

1. Go to this page and download the library: Download jcombee/nativephp-win-pre 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/ */

    

jcombee / nativephp-win-pre example snippets



// routes/window.php

Preset::preset('main', static function (Window $window) {
    $window->url('/')
        ->width(300)
        ->height(300);
});



// routes/window.php

Preset::preset('dish:{dish}', static function (Window $window, $dish) {
    $window->url('/dish/' . $dish);
});


\JCombee\Native\WinPre\Facades\WinPre::open('dish:{dish}', 'goulash');
sh
   php artisan vendor:publish --provider="JCombee\Native\WinPre\WinPreServiceProvider"