Revision: Tue, 30 May 2023 16:57:04 GMT
v2.8 – outdated
This version of the documentation is outdated. Consider upgrading your project to Spiral Framework 3.7
Edit this page

Installation

You can install Spiral components independently or use a pre-build application skeleton, which enables most of the framework functions. You can either downgrade Web skeleton or use the CLI skeleton with minimal number dependencies to start a new application.

Default Web (full-stack) skeleton is available on https://github.com/spiral/app

Installation includes a customized version of the RoadRunner application server with additional extensions and framework-specific functions enabled.

Server Requirements

Make sure that your server configured with the following PHP version and extensions:

  • PHP 8.0+, 64bit
  • mb-string extension (spiral is UTF-8 centric framework)
  • PDO Extension with desired database drivers

Web Application Bundle

Application bundle includes the following components:

  • High-performance HTTP, HTTP/2 server based on RoadRunner
  • Console commands via Symfony/Console
  • Queue support for AMQP, Beanstalk, Amazon SQS, in-Memory
  • Stempler template engine
  • Translation support by Symfony/Translation
  • Security, validation, filter models
  • PSR-7 HTTP pipeline, session, encrypted cookies
  • DBAL and migrations support
  • Monolog, Dotenv
  • Prometheus metrics
  • Cycle DataMapper ORM

Installation

composer create-project spiral/app

Application server will be downloaded automatically (php-curl and php-zip required).

Once the application installed, you can ensure that it was configured properly by executing:

$ php ./app.php configure

To start application server execute:

$ ./rr serve

On Windows:

$ ./rr.exe serve

The application will be available on http://localhost:8080.

Read more about application server configuration here.

Other Skeletons

Check other skeleton builds: