@@ -7,31 +7,30 @@ order: 100
7
7
8
8
1 . PHP 8.3+
9
9
2 . 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 )
14
11
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+
18
14
2 . An active [ Apple Developer account] ( https://developer.apple.com/ )
19
15
3 . 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
20
19
21
- #### For Android
20
+ ### For Android
22
21
1 . [ Android Studio Giraffe (or later)] ( https://developer.android.com/studio )
23
22
2 . The following environment variables set.
24
23
3 . You should be able to successfully run ` java -v ` and ` adb devices ` from the terminal.
25
24
4 . ** Windows only** : You must have [ 7zip] ( https://www.7-zip.org/ ) installed.
26
25
27
- #### For macOS
26
+ #### On macOS
28
27
``` shell
29
28
export JAVA_HOME=$( /usr/libexec/java_home -v 17) // This isn' t required if JAVA_HOME is already set in the Windows Env Variables
30
29
export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk
31
30
export PATH=$PATH:$JAVA_HOME/bin:$ANDROID_HOME/emulator:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools
32
31
```
33
32
34
- #### For Windows
33
+ #### On Windows
35
34
```shell
36
35
set ANDROID_SDK_ROOT=C:\Users\yourname\AppData\Local\Android\Sdk
37
36
set 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
40
39
set JAVA_HOME=C:\P rogram Files\M icrosoft\j dk-17.0.8.7-hotspot
41
40
` ` `
42
41
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
46
43
the 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.
48
45
49
46
## Laravel
50
47
51
48
NativePHP 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
53
50
[Laravel Herd](https://herd.laravel.com). It' s fast and free!
54
51
55
52
@@ -86,7 +83,7 @@ iOS and Android.
86
83
** Before** running the ` install` command it is important to set the following variables in your ` .env` :
87
84
88
85
` ` ` shell
89
- NATIVEPHP_APP_ID=com.nativephp .yourapp
86
+ NATIVEPHP_APP_ID=com.yourcompany .yourapp
90
87
NATIVEPHP_APP_VERSION=" DEBUG"
91
88
NATIVEPHP_APP_VERSION_CODE=" 1"
92
89
` ` `
@@ -97,8 +94,7 @@ NATIVEPHP_APP_VERSION_CODE="1"
97
94
php artisan native:install
98
95
` ` `
99
96
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.
102
98
103
99
# # Start your app
104
100
@@ -115,13 +111,13 @@ This will start compiling your application and boot it on whichever device you s
115
111
116
112
### Running on a real device
117
113
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
120
116
[Developer Mode](https://developer.apple.com/documentation/xcode/enabling-developer-mode-on-a-device)
121
117
and that it' s been added to your Apple Developer account as
122
118
[a registered device](https://developer.apple.com/account/resources/devices/list).
123
119
124
- # ### For Android
120
+ # ### On Android
125
121
On Android you need to [enable developer options](https://developer.android.com/studio/debug/dev-options#enable)
126
122
and have USB debugging (ADB) enabled.
127
123
0 commit comments