PHPackages                             mucan54/tauri-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. [Framework](/categories/framework)
4. /
5. mucan54/tauri-php

ActiveLibrary[Framework](/categories/framework)

mucan54/tauri-php
=================

Build cross-platform desktop applications with Laravel and Tauri. Embed your Laravel app into native desktop apps for Windows, macOS, and Linux using FrankenPHP.

1.2.0(8mo ago)143754[1 issues](https://github.com/mucan54/tauri-php/issues)MITPHPPHP ^8.0|^8.1|^8.2|^8.3CI failing

Since Nov 5Pushed 7mo agoCompare

[ Source](https://github.com/mucan54/tauri-php)[ Packagist](https://packagist.org/packages/mucan54/tauri-php)[ RSS](/packages/mucan54-tauri-php/feed)WikiDiscussions main Synced today

READMEChangelog (6)Dependencies (8)Versions (5)Used By (0)

Tauri-PHP
=========

[](#tauri-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/77610b25920503256684f0593afeb4dc4bde25df68ba1ad0c11a2f245a12dde2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d7563616e35342f74617572692d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mucan54/tauri-php)[![Total Downloads](https://camo.githubusercontent.com/2499f56970d242cf89304e2970e8c5befe8e4a9c93c0c77be534f3ba82ee55dc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d7563616e35342f74617572692d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mucan54/tauri-php)[![License](https://camo.githubusercontent.com/04664eafc592fb331ab2b8ec9c1de9c291d9384dc90be918a67fa7a051ee6267/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d7563616e35342f74617572692d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mucan54/tauri-php)

Transform your Laravel applications into beautiful, fast, and secure cross-platform desktop and mobile applications using Tauri and FrankenPHP.

✨ Features
----------

[](#-features)

- 🚀 **One-Command Initialization** - Get started with a single Artisan command
- 🖥️ **Desktop Support** - Build for Windows, macOS, and Linux from a single codebase
- 📱 **Mobile Support** - Build native Android and iOS applications
- 📦 **Embedded PHP** - No PHP installation required on user devices thanks to FrankenPHP
- 🔒 **Code Protection** - Built-in PHP code obfuscation support
- ⚡ **Hot Reload** - Fast development with hot reload support
- 🎨 **Framework Agnostic** - Works with Vue, React, Svelte, or vanilla JavaScript
- 🐳 **Docker Support** - Cross-compile for different platforms using Docker
- 🔧 **Easy Configuration** - Simple `.env.tauri` configuration file

📋 Prerequisites
---------------

[](#-prerequisites)

Before using Tauri-PHP, ensure you have the following installed:

- **PHP 8.0 or higher** (8.0, 8.1, 8.2, or 8.3)
- **Laravel 9.x, 10.x, 11.x, or 12.x**
- **Node.js 18+** and npm
- **Rust and Cargo** - Install from [rustup.rs](https://rustup.rs/)
- **Docker** (optional, for cross-platform builds)

📦 Installation
--------------

[](#-installation)

Install the package via Composer:

```
composer require mucan54/tauri-php
```

Publish the configuration file (optional):

```
php artisan vendor:publish --tag=tauri-php-config
```

🚀 Quick Start
-------------

[](#-quick-start)

### 1. Initialize Tauri in Your Laravel Project

[](#1-initialize-tauri-in-your-laravel-project)

```
php artisan tauri:init
```

This command will:

- Create `.env.tauri` configuration file
- Set up the Tauri project structure
- Install necessary dependencies
- Generate Rust backend code
- Create the desktop frontend

### 2. Start Development Server

[](#2-start-development-server)

```
php artisan tauri:dev
```

This opens your Laravel app in a native desktop window with hot reload support.

### 3. Build for Production

[](#3-build-for-production)

```
# Build for current platform
php artisan tauri:build

# Build for specific platform
php artisan tauri:build --platform=windows-x64

# Build with code obfuscation
php artisan tauri:build --obfuscate
```

Your distributable application will be in `src-tauri/target/release/bundle/`.

📖 Documentation
---------------

[](#-documentation)

For detailed documentation, visit our [documentation directory](docs/):

- [Installation Guide](docs/installation.md)
- [Getting Started](docs/getting-started.md)
- [Mobile Development](docs/mobile.md) 📱 **NEW!**
- [Configuration Reference](docs/configuration.md)
- [Building Applications](docs/building.md)
- [Troubleshooting](docs/troubleshooting.md)

🎯 Available Commands
--------------------

[](#-available-commands)

### Desktop Commands

[](#desktop-commands)

CommandDescription`php artisan tauri:init`Initialize Tauri in your Laravel project`php artisan tauri:dev`Start development server with hot reload`php artisan tauri:build`Build the application for production`php artisan tauri:package`Create distribution packages`php artisan tauri:clean`Clean build artifacts and temporary files### Mobile Commands

[](#mobile-commands)

CommandDescription`php artisan tauri:mobile-init {platform}`Initialize mobile platform (android/ios/both)`php artisan tauri:mobile-dev {platform}`Run app on mobile device/emulator`php artisan tauri:build --platform=android`Build Android application (APK/AAB)`php artisan tauri:build --platform=ios`Build iOS application⚙️ Configuration
----------------

[](#️-configuration)

The package uses a `.env.tauri` file for configuration. Here are the key settings:

```
# Application Info
TAURI_APP_NAME="My Desktop App"
TAURI_APP_IDENTIFIER=com.example.myapp
TAURI_APP_VERSION=0.1.0

# Window Settings
TAURI_WINDOW_TITLE="My Desktop App"
TAURI_WINDOW_WIDTH=1200
TAURI_WINDOW_HEIGHT=800

# Development Server
TAURI_DEV_HOST=127.0.0.1
TAURI_DEV_PORT=8080

# FrankenPHP Settings
TAURI_FRANKENPHP_VERSION=latest
TAURI_PHP_VERSION=8.3
TAURI_PHP_EXTENSIONS=opcache,pdo_sqlite,mbstring,openssl,tokenizer,xml,ctype,json,bcmath,fileinfo

# Build Settings
TAURI_BUILD_DEBUG=false
TAURI_OBFUSCATE_CODE=false
```

🏗️ How It Works
---------------

[](#️-how-it-works)

1. **FrankenPHP Embedding**: Your Laravel application is embedded with a standalone FrankenPHP binary
2. **Tauri Wrapper**: A lightweight Rust/Tauri application wraps your Laravel app in a native window
3. **No External Dependencies**: Users don't need PHP, a web server, or any dependencies installed
4. **Native Performance**: Leverages native webviews for optimal performance and small bundle sizes

🌍 Supported Platforms
---------------------

[](#-supported-platforms)

### Desktop Platforms

[](#desktop-platforms)

PlatformTarget TripleStatusLinux x64`x86_64-unknown-linux-gnu`✅ SupportedLinux ARM64`aarch64-unknown-linux-gnu`✅ SupportedmacOS x64`x86_64-apple-darwin`✅ SupportedmacOS ARM64 (M1/M2)`aarch64-apple-darwin`✅ SupportedWindows x64`x86_64-pc-windows-msvc`✅ Supported### Mobile Platforms

[](#mobile-platforms)

PlatformTarget TripleStatusAndroid (ARM64)`aarch64-linux-android`✅ SupportedAndroid (ARMv7)`armv7-linux-androideabi`✅ SupportedAndroid (x86\_64)`x86_64-linux-android`✅ SupportediOS (ARM64)`aarch64-apple-ios`✅ SupportediOS Simulator`aarch64-apple-ios-sim`✅ Supported🔒 Code Obfuscation
------------------

[](#-code-obfuscation)

Protect your source code when distributing:

```
php artisan tauri:build --obfuscate
```

This uses YakPro-Po by default to obfuscate your PHP code before embedding.

🐳 Cross-Platform Building
-------------------------

[](#-cross-platform-building)

Build for multiple platforms using Docker:

```
# Build for specific platform
php artisan tauri:build --platform=windows-x64

# Build for multiple platforms
./docker-build.sh "linux-x64,windows-x64,macos-arm64"
```

🤝 Contributing
--------------

[](#-contributing)

Contributions are welcome! Please feel free to submit a Pull Request.

1. Fork the repository
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
3. Commit your changes (`git commit -m 'Add some amazing feature'`)
4. Push to the branch (`git push origin feature/amazing-feature`)
5. Open a Pull Request

📝 License
---------

[](#-license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

🙏 Credits
---------

[](#-credits)

- Built on top of [Tauri](https://tauri.app/) - The Rust-powered desktop framework
- Uses [FrankenPHP](https://frankenphp.dev/) - The modern PHP app server
- Inspired by the Laravel community

📧 Support
---------

[](#-support)

- **GitHub Issues**: [Report bugs or request features](https://github.com/mucan54/tauri-php/issues)
- **Discussions**: [Ask questions and share ideas](https://github.com/mucan54/tauri-php/discussions)

🌟 Show Your Support
-------------------

[](#-show-your-support)

If this package helped you, please give it a ⭐️ on [GitHub](https://github.com/mucan54/tauri-php)!

---

**Made with ❤️ for the Laravel community**

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance61

Regular maintenance activity

Popularity26

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.4% 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

Every ~0 days

Total

3

Last Release

240d ago

PHP version history (2 changes)v0PHP ^8.1|^8.2|^8.3

1.2.0PHP ^8.0|^8.1|^8.2|^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/2361c1d343256fe00c196d1faa12a1154f35947b0531ee904847382947f61c35?d=identicon)[mucan54](/maintainers/mucan54)

---

Top Contributors

[![claude](https://avatars.githubusercontent.com/u/81847?v=4)](https://github.com/claude "claude (54 commits)")[![mucan54](https://avatars.githubusercontent.com/u/5364325?v=4)](https://github.com/mucan54 "mucan54 (40 commits)")

---

Tags

laraveldesktopfrankenphpcross-platformtaurielectron-alternativenative-appsphp-desktopdesktop-applications

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/mucan54-tauri-php/health.svg)

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

###  Alternatives

[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M305](/packages/laravel-horizon)[laravel/sail

Docker files for running a basic Laravel application.

1.9k205.7M1.3k](/packages/laravel-sail)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M150](/packages/laravel-mcp)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M298](/packages/laravel-dusk)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)

PHPackages © 2026

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