@@ -7,31 +7,30 @@ order: 100
77
881 . PHP 8.3+
992 . Laravel 10 or higher
10- 3 . An Apple Silicon Mac running macOS 12+ with Xcode 16+
11- 4 . An active [ Apple Developer account] ( https://developer.apple.com/ )
12- 5 . [ A NativePHP for Mobile license] ( https://nativephp.com/mobile )
13- 6 . _ Optional_ iOS device
10+ 3 . [ A NativePHP for Mobile license] ( https://nativephp.com/mobile )
1411
15-
16- #### For iOS
17- 1 . An Apple Mac (ideally Silicon) running macOS 12+ with Xcode 16+
12+ ### For iOS
13+ 1 . An Apple Silicon Mac running macOS 12+ with Xcode 16+
18142 . An active [ Apple Developer account] ( https://developer.apple.com/ )
19153 . You can download Xcode from the Mac App Store
16+ 4 . _ Optional_ iOS device
17+
18+ > ** Note** You cannot build iOS apps on Windows or Linux
2019
21- #### For Android
20+ ### For Android
22211 . [ Android Studio Giraffe (or later)] ( https://developer.android.com/studio )
23222 . The following environment variables set.
24233 . You should be able to successfully run ` java -v ` and ` adb devices ` from the terminal.
25244 . ** Windows only** : You must have [ 7zip] ( https://www.7-zip.org/ ) installed.
2625
27- #### For macOS
26+ #### On macOS
2827``` shell
2928export JAVA_HOME=$( /usr/libexec/java_home -v 17) // This isn' t required if JAVA_HOME is already set in the Windows Env Variables
3029export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk
3130export PATH=$PATH:$JAVA_HOME/bin:$ANDROID_HOME/emulator:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools
3231```
3332
34- #### For Windows
33+ #### On Windows
3534```shell
3635set ANDROID_SDK_ROOT=C:\Users\yourname\AppData\Local\Android\Sdk
3736set PATH=%PATH%;%JAVA_HOME%\bin;%ANDROID_SDK_ROOT%\platform-tools
@@ -40,16 +39,14 @@ set PATH=%PATH%;%JAVA_HOME%\bin;%ANDROID_SDK_ROOT%\platform-tools
4039set JAVA_HOME=C:\P rogram Files\M icrosoft\j dk-17.0.8.7-hotspot
4140` ` `
4241
43- > ** Note** You cannot build iOS apps on Windows or Linux
44-
45- You don' t _need_ a physical iOS/Android device to compile your application and test it for your app, as NativePHP for Mobile supports
42+ You don' t _need_ a physical iOS/Android device to compile and test your application, as NativePHP for Mobile supports
4643the iOS Simulator and Android emulators. However, we highly recommend that you test your application on a real device before submitting to the
47- App/ Google Play Store.
44+ Apple App Store and Google Play Store.
4845
4946## Laravel
5047
5148NativePHP for Mobile is built to work with Laravel. You can install it into an existing Laravel application, or
52- [start a new one](https://laravel.com/docs/installation). The most painless way to get PHP and Node up and running on your system is with
49+ [start a new one](https://laravel.com/docs/installation). The most painless way to get PHP up and running on Mac and Windows is with
5350[Laravel Herd](https://herd.laravel.com). It' s fast and free!
5451
5552
@@ -86,7 +83,7 @@ iOS and Android.
8683** Before** running the ` install` command it is important to set the following variables in your ` .env` :
8784
8885` ` ` shell
89- NATIVEPHP_APP_ID=com.nativephp .yourapp
86+ NATIVEPHP_APP_ID=com.yourcompany .yourapp
9087NATIVEPHP_APP_VERSION=" DEBUG"
9188NATIVEPHP_APP_VERSION_CODE=" 1"
9289` ` `
@@ -97,8 +94,7 @@ NATIVEPHP_APP_VERSION_CODE="1"
9794php artisan native:install
9895` ` `
9996
100- The NativePHP installer works similarly to NativePHP for Desktop, taking care of setting up and configuring your Laravel
101- application to work with iOS and/or Android.
97+ The NativePHP installer takes care of setting up and configuring your Laravel application to work with iOS and Android.
10298
10399# # Start your app
104100
@@ -115,13 +111,13 @@ This will start compiling your application and boot it on whichever device you s
115111
116112### Running on a real device
117113
118- #### For iOS
119- If you want to run your app on a real mobile device, you need to make sure the device is in
114+ #### On iOS
115+ If you want to run your app on a real iOS device, you need to make sure it is in
120116[Developer Mode](https://developer.apple.com/documentation/xcode/enabling-developer-mode-on-a-device)
121117and that it' s been added to your Apple Developer account as
122118[a registered device](https://developer.apple.com/account/resources/devices/list).
123119
124- # ### For Android
120+ # ### On Android
125121On Android you need to [enable developer options](https://developer.android.com/studio/debug/dev-options#enable)
126122and have USB debugging (ADB) enabled.
127123
0 commit comments