Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

How I embedded PHP 8.4 runtime directly into Android & iOS apps

Описание и применение

Phphone позволяет PHP-разработчикам запускать бизнес‑логика непосредственно на Android и iOS, используя встроенный движок PHP 8.4 и защищая исходный код шифрованием AES‑256.

Задача

Mobile developers typically choose either native code or heavy JS frameworks, limiting the ability to run PHP business logic locally on the device.

Результат

Phphone enables PHP developers to run business logic locally on Android and iOS devices, reducing reliance on remote servers, improving performance, and protecting intellectual property through in-memory encryption.

Рабочий процесс

  • 1. Install Phphone CLI and create a new project.
  • 2. Write PHP code using Phphone\Device for native hardware access.
  • 3. Build the app with phphone build apk --release or equivalent iOS command.
  • 4. The build process compiles PHP into a native C++/Swift bridge and encrypts source files with AES-256-CBC.
  • 5. Deploy the APK/IPA to the device; PHP code is decrypted in RAM and executed by the embedded engine.
  • 6. Use local SQLite3 for offline persistence.
  • 7. Test the app on Android and iOS devices to verify functionality.

Доказательства

Phphone is an open-source compiler and runtime that packages an embedded PHP 8.4 engine directly into native Android and iOS mobile binaries.

Источник

The build process compiles PHP into a native C++/Swift bridge and encrypts source files with AES-256-CBC.

Источник

  • Дата записи: 2026-09-20T03:45:19.272Z