![]() ![]() d, -working-dir=WORKING-DIR If specified, use the given directory as working directory. _/\_/_/\_/_/ /_/ Composer version 1.8.6 15:03:05 Usage: command Options: -h, -help Display this help message -q, -quiet Do not output any message -V, -version Display this application version -ansi Force ANSI output -no-ansi Disable ANSI output -n, -no-interaction Do not ask any interactive question -profile Display timing and memory usage information -no-plugins Whether to disable plugins. Now execute the following PHP script to verify that the installation script is safe to run: php -r "if (hash_file('SHA384', 'composer-setup.php') = '$HASH') echo PHP_EOL " Make sure that you substitute the latest hash for the value of the above line. Next, verify that the installer matches the SHA-384 hash for the latest installer found on the page. ![]() Make sure you’re in your home directory, then retrieve the installer using curl: cd ~ curl -sS -o composer-setup.php You will download it, verify that it’s not corrupted, and then use it to install Composer. Step 2: Downloading and Installing ComposerĬomposer provides an installer, written in PHP. With the prerequisites installed, you can install Composer itself. Everything can be installed with the following command: sudo apt install curl php-cli php-mbstring git unzip git is used by Composer for downloading project dependencies and unzip for extracting zipped packages. The php-mbstring package is necessary to provide functions for a library You will be using. You will need curl in order to download Composer and php-cli for installing and running it. ![]() Before you can download and install Composer, ensure your server has all dependencies installed.įirst, update the package manager cache by running: sudo apt update ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |