Symfony CLI🔗
The Symfony CLI is a developer tool to help you build, run, and manage your Symfony applications directly from your terminal. It's Open-Source, works on macOS, Windows, and Linux, and you only have to install it once in your system.
Installation🔗
OS X🔗
Symfony-cli component🔗
1 |
|
If you want to install it on other systems or different contexts, please refer you to the official documentation
PHP binaries🔗
You'll need PHP binaries files
- Read your
.php_version
file at the root of your project to know which php version to install
On macOS X, the official maintener of homebrew php tap is shivam mathur on Github.
You can install the desired php version, by specifying a formulae (here for example the 8.0)
1 |
|
There is another page in these cookbooks for further informations, and to find all the formulaes, and the prerequisities of installign the php binaries, please check the homebrew-php repository.
Use cases🔗
On what types of projects🔗
The Symfony binary tools is useful on projects when there is no database, special infrastructure, or special tools (PHP extensions, binaries...) for example.
For what purposes🔗
- Serve a local server easily
- In Elao context it could be websites elao_ or rix
- When you have to test certain functionalities that need a rendering web page. For example binary wkhtmltopdf will need HTML to generate pdf, so the symfony local server will achieve this purpose.
Demo and commands used🔗
To run the local server, simply do:
1 2 |
|