Start a New NativePHP Project
This tutorial assumes that you have already followed the Installation guide.
Before you start
Make sure that:
NativeCLI has been installed.
NativeCLI is in your path and available for use:
nativecli --version Output: NativePHP CLI Tool 1.0.0-alpha.1
Starting a new NativePHP Project
At this time, NativePHP only supports Laravel. For this reason, so does NativeCLI.
NativeCLI utilises Laravels Installer library. This means that any arguments available within that is also available within NativeCLI.
Execute the following command in the terminal:
cd ~/Code nativecli new MyFirstProjectYou'll be prompted to select some options from the Laravel installer. Choose your favourites!
That's it! you'll find a new folder with your project name. It includes everything you need to get started.
Last modified: 29 January 2025