Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

YacineHamiane's avatar

Issue Installing NativePHP with Laravel 10 on Windows

Hello everyone,

I am currently experimenting with the new PHP framework, NativePHP, to develop desktop applications using Laravel 10 with PHP version 8.1. I am running on a Windows system.

Here are the steps I followed:

  1. I created a new Laravel project with the command: composer create-project laravel/laravel example-app.
  2. I navigated to the project directory with the command: cd example-app.
  3. Next, I installed the NativePHP/Electron package with the command: composer require nativephp/electron, and the installation went smoothly.
  4. Finally, I attempted to install NativePHP with the command: php artisan native:install. However, the process seems to get stuck after displaying "Publishing NativePHP ServiceProvider" and remains in a waiting state without progressing.

I am aware that NativePHP is currently in alpha and unstable, but I have heard that some have managed to get it working. Has anyone encountered this issue before and could guide me towards a solution?

Any help would be greatly appreciated. Thanks in advance!

0 likes
6 replies
JussiMannisto's avatar

@YacineHamiane The official page clearly says that it requires Linux of Mac. It would be more surprising if you didn't run into any issues.

kokoshneta's avatar

Apart from the lack of Windows support, I take it you’ve either seen or actually wrote this Github issue (which currently has no answers) about the exact issue you’re describing here?

1 like
YacineHamiane's avatar

@kokoshneta It's not me who wrote this, but I have the same problem. I saw a few articles while searching on Google and YouTube that it can be used on Windows.

Please or to participate in this conversation.