Configuration
Configure your NativePHP Desktop application’s metadata, behavior, and build settings through theconfig/nativephp.php file.
Configuration File
After installation, you’ll find the configuration file atconfig/nativephp.php. This file controls all aspects of your desktop application.
Application Metadata
Define your application’s identity and metadata:Version
The version number of your application, used for update checks:Increment this value every time you release a new version. The updater uses this to determine if updates are available.
Application ID
A unique identifier for your application, typically in reverse domain notation:Deep Linking
Configure a custom URL scheme to open your application from other apps:deeplink_scheme to "myapp" allows URLs like myapp://some/path to open your application.
Application Details
Provide additional metadata for your application:Service Provider
Specify your application’s native service provider:Build Configuration
Environment Cleanup
Remove sensitive keys from the.env file when building for production:
File Cleanup
Exclude unnecessary files and folders from the production build:Build Scripts
Run custom scripts before and after building:Auto-Update System
Configure automatic updates for your application:Enable/Disable Updates
The updater only works in production builds. It will not function during development.
Update Providers
NativePHP supports multiple update distribution methods:- GitHub Releases
- Amazon S3 / R2
- DigitalOcean Spaces
Queue Workers
Configure automatic queue workers that start with your application:queues
Array of queue names to process
memory_limit
Memory limit in MB for the worker
timeout
Job timeout in seconds
sleep
Seconds to sleep when no jobs available
Custom PHP Binary
Specify a custom PHP binary path if needed:This is rarely needed. NativePHP automatically bundles the appropriate PHP runtime for your target platforms.
Complete Configuration Example
Next Steps
Quick Start
Build your first desktop application
Application Lifecycle
Learn about bootstrapping and lifecycle events