66Requirements for Running Symfony
77================================
88
9- Symfony 4 requires **PHP 7.1.3 ** or higher to run, in addition to other minor
10- requirements. To make things simple, Symfony provides a tool to quickly check if
11- your system meets all those requirements. Run this command to install the tool:
9+ These are the technical requirements to run Symfony 4 applications:
10+
11+ * **PHP version **: 7.1.3 or higher
12+ * **PHP extensions **: (all of them are installed and enabled by default in PHP 7+)
13+
14+ * `Ctype `_
15+ * `iconv `_
16+ * `JSON `_
17+ * `PCRE `_
18+ * `Session `_
19+ * `SimpleXML `_
20+ * `Tokenizer `_
21+
22+ * **Writable directories **: (must be writable by the web server)
23+
24+ * The project's cache directory (``var/cache/ `` by default, but the app can
25+ :ref: `override the cache dir <override-cache-dir >`)
26+ * The project's log directory (``var/log/ `` by default, but the app can
27+ :ref: `override the logs dir <override-logs-dir >`)
28+
29+ Checking Requirements Automatically
30+ -----------------------------------
31+
32+ To make things simple, Symfony provides a tool to quickly check if your system
33+ meets these requirements. In addition, the tool provides recommendations if
34+ applicable.
35+
36+ Run this command to install the tool:
1237
1338.. code-block :: terminal
1439
1540 $ cd your-project/
1641 $ composer require symfony/requirements-checker
1742
18- Beware that PHP can define a different configuration for the command console and
43+ Beware that PHP may use different configurations for the command console and
1944the web server, so you need to check requirements in both environments.
2045
2146Checking Requirements for the Web Server
@@ -38,4 +63,12 @@ Checking Requirements for the Command Console
3863
3964The requirements checker tool adds a script to your Composer configuration to
4065check the requirements automatically. There's no need to execute any command; if
41- there is any issue, you'll see them in the console output.
66+ there are any issues, you'll see them in the console output.
67+
68+ .. _`iconv` : https://php.net/book.iconv
69+ .. _`JSON` : https://php.net/book.json
70+ .. _`Session` : https://php.net/book.session
71+ .. _`Ctype` : https://php.net/book.ctype
72+ .. _`Tokenizer` : https://php.net/book.tokenizer
73+ .. _`SimpleXML` : https://php.net/book.simplexml
74+ .. _`PCRE` : https://php.net/book.pcre
0 commit comments