Download the PHP package aureuserp/nativephp-remote without Composer

On this page you can find all versions of the php package aureuserp/nativephp-remote. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package nativephp-remote

NativePHP Remote

Connect NativePHP mobile apps to a centralized web server instead of running PHP on-device. Build one Laravel app that works as both a web app and a native mobile app.

How It Works

NativePHP normally bundles your Laravel app and runs it locally on the device. This package patches NativePHP so the mobile WebView connects to your existing web server instead. All requests go to your server — the native shell provides the mobile experience (top bar, side nav, camera, haptics, etc.).

Requirements

Installation

The service provider is auto-discovered. To publish the config:

Setup

1. Configure NativePHP Start URL

In your config/nativephp.php (or .env on the device), set the start URL to your server:

The ?nativephp=1 parameter is required on the first request — it sets a cookie so subsequent requests are recognized as native.

2. Patch NativePHP

After installing or updating NativePHP, run:

This copies patched Kotlin/Swift files that enable:

Without --force, it applies incremental patches to existing files (useful after NativePHP updates).

3. Add Middleware

Add the middleware to routes that should support native mode:

4. Include Bridge Scripts

Add the bridge scripts component to your layout, before </body>:

This provides:

5. Add Native UI JSON to Layout

For native top bar, side nav, and bottom nav to work, include the Edge data in your layout:

PHP Helpers

JavaScript Bridge

After including <x-nativephp-remote::bridge-scripts />:

Dual-Mode Pages

Build pages that work both as web and native:

Safe Area Insets

The native shell injects CSS variables for device safe areas (notch, navigation bar):

Hash-Based Actions

Trigger native actions via URL hash fragments. Useful for native top bar buttons:

Then listen in JavaScript:

Configuration

What the Patcher Does

Running php artisan nativephp:patch-remote --force applies these changes to NativePHP's native code:

File Changes
AndroidManifest.xml Adds CAMERA and VIBRATE permissions
LaravelEnvironment.kt Hosted remote host detection, HTTPS normalization, circular dependency fix
MainActivity.kt Hosted remote URL loading, hash-aware navigation, hardware-accelerated WebView, JS bridge (vibrate, toast, updateNativeUI)
WebViewManager.kt Hosted remote URL routing, camera permission handling, /_native/ API interception, native UI DOM hydration
NativeTopBar.kt Hosted remote external URL detection
NativeSideNav.kt Hosted remote external URL detection
ContentView.swift Fragment-preserving URL extraction, hash-aware navigation, native UI/haptic/toast handlers
NativePHPApp.swift Hosted remote host detection, HTTPS normalization
NativeSideNav.swift (iOS) Hosted remote external URL detection

License

MIT


All versions of nativephp-remote with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^11.0|^12.0|^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package aureuserp/nativephp-remote contains the following files

Loading the files please wait ...