Download the PHP package rhyslees/laravel-installer-plus without Composer
On this page you can find all versions of the php package rhyslees/laravel-installer-plus. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rhyslees/laravel-installer-plus
More information about rhyslees/laravel-installer-plus
Files in rhyslees/laravel-installer-plus
Package laravel-installer-plus
Short Description Laravel Installer Plus
License MIT
Homepage https://rhyslees.co.uk/laravel-installer-plus
Informations about the package laravel-installer-plus
Laravel Installer Plus
This is a community project and not an official Laravel one
- This is a cli tool for the installation of laravel.
- It will install the laravel application and the packages you specify.
Built with Laravel Zero.
Requirements
- Laravel Installer
- Composer.
- PHP 8.0 or higher.
IMPORTANT: This Package assumes that you have laravel-installer, composer and php installed globally.
Installation
Your configuration is stored in $HOME/.laravel-installer-plus/config.json
Documentation
Options
All Laravel Installer options are included in Laravel Installer plus so you can optionally pass them.
NOTE: If you use options such as
--git
for every appliction you can add them tolaravel-options
in the config and they will be appended to the command so you dont need to specifiy them manually (see example below).
Project Install Location
- The location where the laravel application will be installed.
If you have a directory where all projects exist, you can set it install-location
in $HOME/.laravel-installer-plus/config.json
. This will then run the install commands to that directory no matter where you run the command from.
When changing this remember you only specify the path relative to your home directory.
macOS / GNU / Linux Distributions:
$HOME/
For example if you use a folder named Projects
in your home directory, you can set the install location to Projects
.
Leaving this option as an empty string will use the current directory.
NOTE: If you are unsure if you have set this correctly, you can check by running
laravel-installer-plus location {name}
which will output where it would install the application.
Packages to install
- The packages that will be installed.
- The
composer
andnpm
. - You can change this in the config.json file.
- You need add packages to the
packages
array. - Specify the key of the package you want to install
Packages to install Example
Packages
- The package that can be installed.
- You can change this in the config.json file.
- The packages are installed in the order you specify.
- You can install packages with both composer and npm.
Package Example
Repositories
If you need to require a private package, first add the package to the packages->composer
array. You can then add the repository to the repositories
array.
key
must match the package key.
name
is the name of the package (see example below).
type
is the type of repository.
url
is the url of the repository.
With VCS:
With Path (symlink):
NOTE: when using path ensure the url is relative to your project directory.
Commands
- The commands are executed in the order you specify.
- You can execute commands with composer and npm.
You use use $name
and $nameSnake
variables in your commands which can be useful for example if you want to create a database.
which would become
NOTE: If you wish to run sudo commands you will be prompted for your password at each command step i.e pre-install, post-install, pre-package, post-package.
Commands Example
Pre Install
The commands that will be run before the installation of laravel.
IMPORTANT: Pre Install commands are run in the install-location not the application location.
Post Install
The commands that will be run after the installation of laravel.
Pre Package
The commands that will be run before the installation of packages.
Post Package
The commands that will be run after the installation of packages.
TODO
- [x] Make it posible to install from current working directory.
- [ ] Add support for manipluating files such as .env, app.css etc.
- [ ] Move away from using laravel/installer to install laravel.
License
Laravel Installer Plus is an open-source software licensed under the MIT license.