Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Scop's avatar
Level 1

How to Develop an Effective Installer for My Laravel Application?

I am currently working on delivering my Laravel project to a client and want to provide a streamlined installation process. I plan to create an installer script to help my client set up the application easily.

how can I do this?

i don't have any idea about that...

0 likes
15 replies
Tray2's avatar

Depends on what kind server the will run it on.

But I'm guessing they will have access to the source on github.

In that case you can simply.

  1. git clone
  2. composer install
  3. php artisan migrate --seed
  4. npm install
  5. npm run build

If they only have access to the source, they skip the first point.

1 like
Scop's avatar
Level 1

@Tray2 php artisan install

thats all? i dont want to do anything ?

the problem is iam very new to laravel

Tray2's avatar

@Scop That command installs the laravel framework, all it's dependencies and anything you added to your application. Since you never should add the vendor directory to git, just your custom code.

The same goes for the node_modules directory, and those things are install with

npm install

Which I missed in my list.

1 like
Snapey's avatar

can you persuade them to take out a forge subscription?

1 like
jlrdw's avatar

You kind of can't do that, not knowing what server they will use what hosting they have.There's a lot that goes into it.

Also , they might not be familiar with installing with composer.

Frankly you would be better off having a SaaS.

Just my opinion and suggestion.

1 like
Scop's avatar
Level 1

@jlrdw ok how to do that ?

the problem is,

i developed a inventory management system

everyone wants to install my system easily... so i need to develop installer like wordpress installing...

i search many time on google and youtube, i can't find out the solution or i cant find out the tutorials :(

Tray2's avatar

@Scop You can create an artisan command for setting up the config, but that is after the running the composer install.

You can of course spend time one writing a web based setup wizard, but in my experience those a mostly annoying at least for IT pros. They usually much prefer things they can script.

You can always take a look at how the laravel installer is built and do something similar for your application.

https://github.com/laravel/installer

jlrdw's avatar

@Scop You could make a multi tenant SaaS app. That way your code is also protected. Or is this open source?

and want to provide a streamlined installation process.

For the current client, my suggestion is you take care of the setup for them. If the client isn't familiar with database and server management, you could offer to handle it for a fee.

Or like many github projects, give some good step by step instructions.

But remember the host and server makes a big difference.

It takes some training and experience to setup projects on AWS, digital ocean, etc.

Again, suggestions only.

1 like

Please or to participate in this conversation.