looks like no https://github.com/cztomczak/phpdesktop/releases
phpdesktop support PHP 7.4
Does phpdesktop latest version support PHP 7.4?
That means it cant be used with Laravel 8 since the minimum PHP version required is 7.3
looks like yes ;) i think phpdesktop bad idea for desktop app, use electron or PWA. it means, use JavaScript
Any documentation you can point me to explore for the electrons?
@brainyt How about reading the documentation?
@trin Meanwhile, can you share more light on why phpdesktop is a bad idea
@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 like?
@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.
@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.
@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.
@martinbean You know when you already build an app for a client, and he introduces that feature
Then you tell them they’ve asked for a web app, and that you’ve built a web app 😄
@martinbean ....then find better clients
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
https://github.com/cztomczak/phpdesktop/wiki/Knowledge-Base#php-interpreter--extensions There is actually a solution to your problem. Just copying the latest release of PHP in the PHP desktop directory solves the version issue. Hope it helps others too.
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.
@syracine great work, just tried out your release, working fine thanks for updating the project.
Please or to participate in this conversation.