PHPackages                             prolaxu/flutter-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. prolaxu/flutter-php

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

prolaxu/flutter-php
===================

Build Flutter mobile UIs from PHP. Define screens, components, routes, and stores in PHP — a Flutter renderer turns the JSON manifest into a native app.

v1.0.0(1mo ago)02MITPHPPHP ^8.2

Since Jun 12Pushed 1mo agoCompare

[ Source](https://github.com/prolaxu/flutter-php)[ Packagist](https://packagist.org/packages/prolaxu/flutter-php)[ Docs](https://github.com/prolaxu/flutter-php)[ RSS](/packages/prolaxu-flutter-php/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

FlutterPHP
==========

[](#flutterphp)

Build Flutter mobile UIs entirely from PHP. Your app lives in `app/MobileUI/` — you never touch Flutter except to build and publish. Paired with [Flutter Kit](https://github.com/prolaxu/flutter-kit) renderer.

How it works
------------

[](#how-it-works)

```
PHP (app/MobileUI/) → JSON manifest → Flutter renderer → Native app

```

You define screens, components, routes, stores, and theme in PHP classes. A CLI command generates `app_structure.json`. The Flutter renderer parses this JSON and renders the entire app at runtime — no Flutter code needed per project.

Installation
------------

[](#installation)

```
composer require prolaxu/flutter-php
```

The service provider auto-registers via Laravel package discovery.

Pair with **[Flutter Kit](https://github.com/prolaxu/flutter-kit)** — the JSON-driven Flutter renderer.

Quick start
-----------

[](#quick-start)

```
php artisan flutter-php:init-app MyApp
php artisan flutter-php:generate-structure
```

Serve at `GET /api/app-structure`. Point your Flutter Kit at this URL.

Structure
---------

[](#structure)

```
app/MobileUI/
├── AppStructure.php        # Manifest definition
├── Components/             # Reusable UI components (ProductCard, etc.)
├── Screens/                # Screen definitions
├── Stores/                 # Reactive state stores
└── Theme/                  # App theme

packages/flutter-php/src/UIBuilder/
├── Components/             # 33 built-in components (Scaffold, Row, RemoteList, etc.)
├── Actions/                # 20+ action types (navigate, apiCall, setStoreValue, etc.)
├── Structure/              # App manifest structure (routes, environment, etc.)
├── State/                  # Store references and state bindings
├── Primitives/             # Text, TextStyle, Color, Padding, etc.
└── Base/                   # UIComponent base class

```

Defining a screen
-----------------

[](#defining-a-screen)

```
class HomeScreen
{
    public static function build(): UIComponent
    {
        return new Scaffold(
            title: new Text('My App'),
            body: new Column(
                children: [
                    new TextComponent(new Text('Hello from PHP!')),
                ],
            ),
        );
    }
}
```

License
-------

[](#license)

MIT

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance90

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

45d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/348936a0de809462b67cd2bdacb000b5e187160b7ee94ede9aacde5d55a023e7?d=identicon)[prolaxu](/maintainers/prolaxu)

---

Top Contributors

[![prolaxu](https://avatars.githubusercontent.com/u/54370052?v=4)](https://github.com/prolaxu "prolaxu (3 commits)")

---

Tags

phpjsonmobiledeclarativeUI Builderflutter

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/prolaxu-flutter-php/health.svg)

```
[![Health](https://phpackages.com/badges/prolaxu-flutter-php/health.svg)](https://phpackages.com/packages/prolaxu-flutter-php)
```

###  Alternatives

[leantime/leantime

Open source project management system for non-project managers. Simple like Trello, powerful like Jira. Built with neurodiversity in mind.

10.2k4.0k](/packages/leantime-leantime)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3518.3k](/packages/duncanmcclean-statamic-cargo)[blancks/fast-jsonpatch-php

Class designed to efficiently handle JSON Patch operations in accordance with the RFC 6902 specification

398.7k](/packages/blancks-fast-jsonpatch-php)[juststeveking/resume-php

A PHP library for building and working with the JSON resume schema.

1061.2k](/packages/juststeveking-resume-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
