Sitemap
Viachaslau Lyskouski

Viachaslau Lyskouski⁠

From each milestone of science taken a handful of knowledge ... their intricacy gives birth to articles and ideas, poems and servlets.

Member-only story

NativePHP: Android distribution

5 min readMar 11, 2026
Press enter or click to view image in full size
Generated by https://chatgpt.com

Preamble
PHP
is a widely used, open-source scripting language designed for building dynamic web applications. NativePHP is a framework that enables developers to transform web applications into native desktop and mobile apps using a single PHP codebase. By embedding a PHP runtime inside platform-specific shells, NativePHP allows familiar backend frameworks, such as Laravel, to run directly on the user’s device.

Objectives
For many years, PHP developers have been highly productive when building backend systems. Frameworks like Laravel made it possible to develop complex applications quickly with a clean architecture and a rich ecosystem.

However, mobile development traditionally required a different stack — rewriting applications in native languages such as Kotlin or Swift, adopting cross-platform frameworks like Flutter, or maintaining separate codebases.

NativePHP introduces a new approach: packaging a Laravel application together with an embedded PHP runtime and running it directly inside a native mobile shell, enabling developers to distribute mobile apps while continuing to work within the familiar PHP ecosystem.

Overview
This article will focus on the Android distribution process for the application https://github.com/lyskouski/app-game-fantasyland.

--

--

Viachaslau Lyskouski
Viachaslau Lyskouski

Written by Viachaslau Lyskouski⁠

From each milestone of science taken a handful of knowledge ... their intricacy gives birth to articles and ideas, poems and servlets.