Get support for garak/electron-symfony
If you're new to LTH, please see our FAQ for more information on what it is we do.
Support Options
Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:
View Open IssuesTake a look to see if anyone else has experienced the same issue as you and if they managed to solve it.
Open an IssueMake sure to read any relevant guidelines for opening issues on this repo before posting a new issue.
Sponsor directlyCheck out the page and see if there are any options to sponsor this project or it's developers directly.
garak/electron-symfony
Electron Symfony
This simple project allows to run a Symfony application inside Electron. It's simply a default Electron build (see https://github.com/electron/electron-quick-start) with gulp-connect-php, needed to run PHP. Indeed, you can use this to run any PHP application, not just a Symfony one.
You need npm installed on your machine to get this working.
Installation
- clone this repository
- run
npm install
- put your Symfony project under
project
directory. If you prefer a different name, just editmain.js
accordingly - for portability, you should put a php static installation under
php
directory. If want to just give a try, you could use your already system-wide installed PHP. In this case, editmain.js
and point the PHP path to your actual path (in thebin
option ofphp.server()
). E.g., for Ubuntu the path isusr/bin/php
- for portability, you should use a sqlite database. If you want to just give a try, you can use a "classic" database (like MySql)
- if your Symfony project is using assets from a CDN, you must copy such assets in your local folders, since
CDN assets are not working inside electron.
For example, if you're using something like
//code.jquery.com/jquery-2.2.3.js
, you need to downalodjquery-2.2.3.js
file and put it underweb/js
directory, then adjust your templates accordingly. - Also, if you use jquery, take a look to this issue
Execution
Run npm start
The following screenshot shows an example of Symfony Standard Edition running with DevTools open:
If you want to use DevTools, uncomment the relevant line in main.js
Our Mission
We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.
From the Blog
Interesting Articles
-
Generating income from open source
Jun 23 • 8 min read
-
2023 State of OSS
Apr 23 • 45 min read ★
-
A funding experiment...
Aug 19 • 10 min read
-
But You Said I could
Aug 19 • 2 min read
Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated
p-e622a1a2