BrainyT's avatar

phpdesktop support PHP 7.4

Does phpdesktop latest version support PHP 7.4?

0 likes
18 replies
BrainyT's avatar

That means it cant be used with Laravel 8 since the minimum PHP version required is 7.3

trin's avatar

looks like yes ;) i think phpdesktop bad idea for desktop app, use electron or PWA. it means, use JavaScript

BrainyT's avatar

Any documentation you can point me to explore for the electrons?

BrainyT's avatar
BrainyT
OP
Best Answer
Level 3

@trin Meanwhile, can you share more light on why phpdesktop is a bad idea

martinbean's avatar

@brainyt I’ll give you one: PHP is an interpreted language, and is wholly unsuitable for desktop apps. Use a more appropriate language for building desktop apps.

martinbean's avatar

@brainyt Like something that isn’t a web scripting language. It depends what operator system you’re targeting as to what language you’d choose from.

For Windows, you’d use something like C#. For macOS, you’d use Swift. Both have IDEs for working with those operating systems (Visual Studio and Xcode).

Or, you can use Electron and build a cross-platform app using JavaScript, which has already been suggested.

BrainyT's avatar

@martinbean The app has already been build with laravel, just looking for a way to make it a standalone on the desktop to look more like a desktop app and users will not need to visit the browser before accessing it.

martinbean's avatar

@brainyt Yeah. I always just build a complete app in something before checking if the target platform actually supports apps written in that technology 🙄

You should have check before writing a line of code whether PHP was suitable for desktop apps, and you would have quickly found it isn’t.

1 like
BrainyT's avatar

@martinbean You know when you already build an app for a client, and he introduces that feature

martinbean's avatar

Then you tell them they’ve asked for a web app, and that you’ve built a web app 😄

Noble's avatar

You could copy the content of a php7.4 installation and replace the default PHP desktop PHP installation with that and you're on your way

syracine's avatar

Maybe it's too late. I built and updated Php-destop to PHP 7.4 with the last release of Chromium 99.0. That means that Php-destop can now handle Javascript ES 6 commands. See my repository on htps://github.com/syracine69/phpdesktop (sorry for the bad link. But this forum doesn't allow me to write a true link on my first day.. So, please replace start characters of my link by appropriate protocole) and download chrome-99.0 Windows release. I didn't tested it with Laravel. But it should work.

1 like
klytron's avatar

@syracine great work, just tried out your release, working fine thanks for updating the project.

Please or to participate in this conversation.