PHPackages                             mage-eye/nativephp-win-pre - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mage-eye/nativephp-win-pre

Abandoned → [jcombee/nativephp-win-pre](/?search=jcombee%2Fnativephp-win-pre)Library[Utility &amp; Helpers](/categories/utility)

mage-eye/nativephp-win-pre
==========================

v0.1.0(1y ago)14MITPHP

Since Nov 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/JCombee/nativephp-win-pre)[ Packagist](https://packagist.org/packages/mage-eye/nativephp-win-pre)[ RSS](/packages/mage-eye-nativephp-win-pre/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

WinPre
======

[](#winpre)

About The Project
-----------------

[](#about-the-project)

WinPre is a library for [NativePHP](https://nativephp.com/). It aims at helping you with orchestrating a application with multiple windows.

Getting Started
---------------

[](#getting-started)

### Prerequisites

[](#prerequisites)

Before you are able to install the package you will need to meet these requirements:

- Running a application with `laravel/framework` version 11 or higher.
- Running a application with `nativephp/laravel` version 0.6.2 or higher.

### Installation

[](#installation)

1. To install WinPre in the root of your project run: ```
    composer require jcombee/nativephp-win-pre
    ```
2. You can now publish the example preset file (`routes/window.php`). ```
    php artisan vendor:publish --provider="JCombee\Native\WinPre\WinPreServiceProvider"
    ```

Usage
-----

[](#usage)

### Open your first window

[](#open-your-first-window)

While following the [Installation](#installation) steps you have, by default, created a preset for the main window that looks like this:

```
// routes/window.php

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

To actually be able to open a window with this preset follow these steps:

1. Remove the `Window::open();` from `app/Providers/NativeAppServiceProvider.php`
2. Now fill the `boot()` function with: `\JCombee\Native\WinPre\Facades\WinPre::open('main')`
3. Run `php artisan native:serve`

Now you will see that the first window will be opened based on the settings you have set in the preset.

### Pass through parameters

[](#pass-through-parameters)

[(under construction)](#roadmap)

Sometimes you might want to add some dynamic configuration to your window, for instance the url. To do this we can add parameters to our preset.

To do this we first add a new preset in `routes/window.php`:

```
// routes/window.php

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

To open this preset we call:

```
\JCombee\Native\WinPre\Facades\WinPre::open('dish:{dish}', 'goulash');
```

By calling this it will take the parameter called dish and replace this in the id for the window.

Roadmap
-------

[](#roadmap)

- Initial project setup
- Add Additional Examples / Documentation
- Creating simple presets
- Pass through parameters
    - Making the parameter available in the preset
    - Replacing the parameter in the id

Contributing
------------

[](#contributing)

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

License
-------

[](#license)

Distributed under the MIT License. See [LICENSE](https://github.com/JCombee/nativephp-win-pre/blob/master/LICENSE.md) for more information.

Contact
-------

[](#contact)

Jerke Combee - [@JCombee](https://x.com/JCombee) -

Project Link:

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

559d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c470ef1a01977dc82502e602cae6051e09f4e24c36b1f91890569e4f3e256aad?d=identicon)[JCombee](/maintainers/JCombee)

---

Top Contributors

[![JCombee](https://avatars.githubusercontent.com/u/8409152?v=4)](https://github.com/JCombee "JCombee (18 commits)")

### Embed Badge

![Health badge](/badges/mage-eye-nativephp-win-pre/health.svg)

```
[![Health](https://phpackages.com/badges/mage-eye-nativephp-win-pre/health.svg)](https://phpackages.com/packages/mage-eye-nativephp-win-pre)
```

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
