You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ composer global require friendsofphp/php-cs-fixer
56
+
composer global require friendsofphp/php-cs-fixer
57
57
58
58
Then make sure you have the global Composer binaries directory in your ``PATH``. This directory is platform-dependent, see `Composer documentation <https://getcomposer.org/doc/03-cli.md#composer-home>`_ for details. Example for some Unix systems:
59
59
60
60
.. code-block:: console
61
61
62
-
$ export PATH="$PATH:$HOME/.composer/vendor/bin"
62
+
export PATH="$PATH:$HOME/.composer/vendor/bin"
63
63
64
64
Globally (homebrew)
65
65
~~~~~~~~~~~~~~~~~~~
66
66
67
67
.. code-block:: console
68
68
69
-
$ brew install php-cs-fixer
69
+
brew install php-cs-fixer
70
70
71
71
Locally (PHIVE)
72
72
~~~~~~~~~~~~~~~
@@ -75,7 +75,7 @@ Install `PHIVE <https://phar.io>`_ and issue the following command:
75
75
76
76
.. code-block:: console
77
77
78
-
$ phive install php-cs-fixer # use `--global` for global install
78
+
phive install php-cs-fixer # use `--global` for global install
79
79
80
80
Update
81
81
------
@@ -87,7 +87,7 @@ The ``self-update`` command tries to update ``php-cs-fixer`` itself:
87
87
88
88
.. code-block:: console
89
89
90
-
$ php php-cs-fixer.phar self-update
90
+
php php-cs-fixer.phar self-update
91
91
92
92
Globally (manual)
93
93
~~~~~~~~~~~~~~~~~
@@ -96,7 +96,7 @@ You can update ``php-cs-fixer`` through this command:
96
96
97
97
.. code-block:: console
98
98
99
-
$ sudo php-cs-fixer self-update
99
+
sudo php-cs-fixer self-update
100
100
101
101
Globally (Composer)
102
102
~~~~~~~~~~~~~~~~~~~
@@ -105,7 +105,7 @@ You can update ``php-cs-fixer`` through this command:
105
105
106
106
.. code-block:: console
107
107
108
-
$ ./composer.phar global update friendsofphp/php-cs-fixer
108
+
./composer.phar global update friendsofphp/php-cs-fixer
109
109
110
110
Globally (homebrew)
111
111
~~~~~~~~~~~~~~~~~~~
@@ -114,13 +114,13 @@ You can update ``php-cs-fixer`` through this command:
The ``--format`` option for the output format. Supported formats are ``txt`` (default one), ``json``, ``xml``, ``checkstyle``, ``junit`` and ``gitlab``.
0 commit comments