How to Install Native PHP with Laravel

How to Install Native PHP with Laravel

Hi devs

Today we will learn how to install native php with laravel. I will show you the installation process step by step so that you can easily build your first nativePHP Application. Read the article carefully to rightly setup the native php.

 

 

What exactly is NativePHP?

 

 

Simply, NativePHP is a combination of elements:

 

1. A collection of easy-to-use classes - abstractions - to enable you to interact with a variety of host operating system features.

 

2. A bunch of tools to enable building and bundling your native application using either the Electron or Tauri browser environment.

 

3. A static PHP runtime that allows your app to run on any user's system with zero effort on their part.

 

 

 

What can we build with NativePHP?

 

Actually, anything you want.  NativePHP is going to empower millions of developers to build all kinds of applications.

 

 

How to install Native PHP ?

 

To install native php we have to follow the bellow stps:

 

Step 1: Requirements

 

1. PHP 8.1

2. Laravel 9 or higher

3. NPM

 

 

Step 2: Install Laravel

 

To install native php we must install laravel first. Execute the artisan command to create a laravel project.

composer create-project laravel/laravel nativePHP

 

 

Step 3: Installation nativePHP

 

Open your terminal and go to your laravel project nativePHP. Now run the bellow artisan command:

composer require nativephp/electron

 

 

Step 4: Run the installer

 

To run the installer we need to execute the bellow command:

php artisan native:install

 

The NativePHP installer takes care of publishing the NativePHP service provider, which takes care of bootstrapping your native application. It also publishes the NativePHP configuration file.

 

 

Step 5: Start the development server

 

Now run the following command to start your development server:

php artisan native:serve

 

Everything is done! You should now see your application running in a native desktop window.

 

Hope this will help you a lot. Thanks to read this article.

 

 

 

If you like what you are reading, please think about buying us a coffee as a token of appreciation.

Buy Me A Coffee

We appreciate your support and are committed to providing you useful and informative content.

We are thankful for your ongoing support 

 

 

 

 

You May Read Bellow Articles:

 

 

Laravel 9 live search data in a table using ajax. 

 

How to send SMS in laravel 9 using Twilio SMS API-Webjourney

 

Laravel 9 pdf invoice generate and download with barryvdh dompdf

 

How to create multi language website by laravel 9

 

Laravel 10 multiple form validation on the same page-WebJourney

 

 Laravel 10 Breeze Authentication - WebJourney

 

Laravel 10 Ajax jQuery Crud with Pagination and Live Search

 

Laravel Naming Conventions Accepted by Laravel community

 

Laravel Shorter and More Readable Syntax - WebJourney

 

Tags

  • Share This: