This skill should be used when the user asks to "start a nativephp app", "create nativephp project", "setup nativephp mobile", "install nativephp", "new mobile app with laravel", "nativephp prerequisites", "environment setup for nativephp", "configure xcode for nativephp", "android studio setup", or needs help getting started with NativePHP Mobile development.
/plugin marketplace add NativePHP/ClaudePlugins/plugin install nativephp-mobile@nativephp-mobile-pluginThis skill inherits all available tools. When active, it can use any tool Claude has access to.
This skill provides guidance for starting new NativePHP Mobile projects, including prerequisites, installation, environment setup, and initial configuration.
NativePHP Mobile enables building native iOS and Android applications using PHP and Laravel. It embeds a PHP runtime directly into native app shells, eliminating the need for a web server.
JAVA_HOME pointing to JDKANDROID_HOME pointing to Android SDKAdd NativePHP repository to composer.json:
{
"repositories": [
{
"type": "composer",
"url": "https://nativephp.composer.sh"
}
]
}
Or use Composer 2.9+:
composer repo add nativephp composer https://nativephp.composer.sh
Add to .env file:
# Required - reverse domain notation
NATIVEPHP_APP_ID=com.yourcompany.yourapp
# Recommended
NATIVEPHP_APP_VERSION=1.0.0
NATIVEPHP_APP_VERSION_CODE=1
# iOS (if building for iOS)
NATIVEPHP_DEVELOPMENT_TEAM=YOUR_TEAM_ID
# Deep links (optional)
NATIVEPHP_DEEPLINK_SCHEME=yourapp
NATIVEPHP_DEEPLINK_HOST=yourapp.com
Critical: NATIVEPHP_APP_ID must use only lowercase letters, numbers, and periods. No hyphens, underscores, spaces, or emoji.
composer require nativephp/mobile
php artisan native:install
php artisan native:run android
# or
php artisan native:run ios
After installation, use the shorthand:
php native run android
./native run ios
| Command | Description |
|---|---|
native:install [platform] | Install NativePHP resources. Options: --force, --with-icu, --without-icu, --skip-php |
native:run [platform] | Run app in emulator/simulator. Options: --build=release |
native:watch [platform] | Watch for changes and hot reload |
native:package [platform] | Package app for distribution |
native:release [platform] | Create release build |
native:build-ios | Build iOS app specifically |
native:check-build-number | Check iOS build number |
native:credentials [action] | Manage app signing credentials |
native:open-project [platform] | Open in Xcode or Android Studio |
native:launch-emulator | Launch Android emulator |
native:tail [platform] | Tail native logs for debugging |
native:version | Show NativePHP version |
xcode-select --install/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"brew install cocoapodsmacOS/Linux (~/.zshrc or ~/.bashrc):
export JAVA_HOME=$(/usr/libexec/java_home -v 17)
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/platform-tools
Windows (System Environment Variables):
JAVA_HOME = C:\Program Files\Java\jdk-17ANDROID_HOME = C:\Users\YourName\AppData\Local\Android\Sdk%JAVA_HOME%\bin, %ANDROID_HOME%\platform-toolsCreate an Android Virtual Device in Android Studio's Device Manager before running.
Ensure Xcode Command Line Tools are selected: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
When prompted, enter your NativePHP license key as the password.
For the most current information, fetch documentation from:
https://nativephp.com/docs/mobile/2/getting-started/quick-starthttps://nativephp.com/docs/mobile/2/getting-started/installationhttps://nativephp.com/docs/mobile/2/getting-started/environment-setuphttps://nativephp.com/docs/mobile/2/getting-started/configurationUse WebFetch to retrieve the latest documentation when users need detailed or updated information.
config/nativephp.phpCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.