Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flathub/org.freedesktop.sdk.extension.php82
https://github.com/flathub/org.freedesktop.sdk.extension.php82
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/flathub/org.freedesktop.sdk.extension.php82
- Owner: flathub
- Created: 2023-05-25T08:37:27.000Z (over 1 year ago)
- Default Branch: branch/22.08
- Last Pushed: 2024-10-24T16:03:45.000Z (2 months ago)
- Last Synced: 2024-10-25T22:17:31.751Z (2 months ago)
- Homepage: https://flathub.org/apps/details/org.freedesktop.Sdk.Extension.php82
- Size: 139 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# org.freedesktop.Sdk.Extension.php82
This extension adds PHP support to Flatpak.
PHP installs to `/usr/lib/sdk/php82` inside the sandbox.
Example Visual Studio Code Configuration
```json
"php.validate.executablePath": "/usr/lib/sdk/php82/bin/php",
"php.executablePath": "/usr/lib/sdk/php82/bin/php",
```Includes
* [php](https://php.net/)
* [composer](https://github.com/composer/composer)
* [PHIVE](https://phar.io/)
* [apcu](https://pecl.php.net/package/APCu)
* [xdebug](https://xdebug.org/)Each Flatpak can have its own custom php configuration files.
e.g. for Visual Studio Code
`~/.var/app/com.visualstudio.code/config/php/8.2/ini/my-custom.ini` or `/var/config/php/8.2/ini/my-custom.ini` from a sandboxed shell.Global composer installs are limited to the Flatpak they were installed in.
#### Troubleshooting
`/usr/bin/env: ‘php’: No such file or directory`Run `. /usr/lib/sdk/php82/enable.sh` or add `/usr/lib/sdk/php82/bin` to your $PATH.
#### Modules
```bash
bash-5.0$ php -m
[PHP Modules]
apcu
bz2
Core
ctype
curl
date
dom
fileinfo
filter
hash
iconv
intl
json
libxml
mbstring
openssl
pcntl
pcre
PDO
pdo_sqlite
Phar
posix
random
Reflection
session
SimpleXML
SPL
sqlite3
standard
tokenizer
xdebug
xml
xmlreader
xmlwriter
zip
zlib[Zend Modules]
Xdebug
```
#### Build
```bash
flatpak-builder --repo repo .build org.freedesktop.Sdk.Extension.php82.json --force-clean
```