Spiral provides a convenient application installer that allows developers to easily install and configure the framework and any desired packages through a command line interface. This helps streamline the process of getting started with Spiral and simplifies the setup of the development environment.
It can be very useful for installing all required config files, environment variables, and bootloaders for the desired packages and components. The installer allows developers to easily install a variety of packages and components, including:
Having these packages and components readily available and properly configured through the installer can save developers time and effort in setting up their development environment and getting their projects up and running.
Make sure that your server is configured with the following PHP version and extensions:
Installation process with the installer is very straightforward and easy to use. You can use the following command to create a new project:
And you will see the following output:
Creating a "spiral/app" project at "./my-app"Installing spiral/app (1.1.1)- Installing spiral/app (1.1.1): Extracting archiveCreated project in /var/www/my-app> Installer\Installer::installWhich application preset do you want to install? Web Cli gRPCMake your selection (1):
When something went wrong during installation process, you can always restart it by running
Once the application is installed,
README.md file will be generated in the root directory of the project with the
instructions on how to start the application server and how to run the application.
RoadRunner application server will be downloaded automatically.
To start application server execute:
Use the following command to run RoadRunner server on Linux
Make sure that
rrbinary is executable.
By default, the application will be available on
Read more about application server in the Getting started — Application Server section.
Now, dive deeper into the fundamentals by reading some articles: