Skip to content

Project structure clarification #274

Closed Answered by simonhamp
DRSDavidSoft asked this question in Q&A
Discussion options

You must be logged in to vote

instead of relying on Electron to achieve system commands, you'd do it natively in PHP by calling the appropriate system API calls through the DLLs provided in Windows.

You don't even need to do this. For many standard system calls that PHP is already capable of handling across platforms, you can simply write the necessary PHP code (e.g. unlink('a-file-i-hate.mov')) and let the interpreter handle it.

The interaction with the 'backend' (in this case Electron) is there to enable the other cross-platform parts that aren't well-built across the PHP ecosystem, such as Window, Taskbar and Menu management.

Tools like Tauri and Electron are abstracting away much of the complexity of this across…

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by simonhamp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
awaiting-input Further information is requested
4 participants
Converted from issue

This discussion was converted from issue #117 on April 28, 2024 20:18.