Wizard for configuring new or existing Laravel projects
⚠️ WARNING⚠️ For the time being, this script has only been successfully tested on a Mac OSX system.
If you want to contribute to the improvement of this wizard on other operating systems, you know what to do ;)
As a configurator, a shell file was made to be run at the command line directly in the folder of the project to be configured. At startup, the command will run an installation wizard, asking the user to confirm each command.
- download the script:
curl -s -o setup.sh https://raw.githubusercontent.com/danielemontecchi/laravel-setup/master/setup.sh
- sets permissions for execution:
chmod +x setup.sh
- run script:
sh ./temp_script.sh
To customize the script and project files with your own needs, fork or clone this repository and change it as you like.
PHP CS Fixer you can also install it as the default formatter for PHP on Visual Studio Code.
To do this you need to follow a few steps:
The extension is used precisely to allow VS Code to perform formatting each time files are saved.
To install it, visit its page in the VS Code marketplace.
To properly configure PHP CS Fixer, you need to install it globally on your system.
To do so, follow the official guide where different methods are defined depending on your OS.
The configuration guide for VS Code can be found in the following README.
Once completed, when saving any PHP file, you should get a file formatted according to the rules, with no errors from VS Code.
To install and configure the formatter PHP CS Fixer, follow the instructions on the JetBrains help portal.
This is another extension useful for formatting files, even non-PHP files. You can install it directly from its page in the VS Code marketplace.