Verification: a143cc29221c9be0

Php artisan october util compile js

1. Prerequisites

  • Shell access to a running Ubuntu system with sudo privilege.
  • PHP must be installed and configured, version 5.3 or higher.

2. Install Composer on Ubuntu

To install PHP composer on an Ubuntu system. We just need to download the composer executable and put it under bin directory.

curl -sS https://getcomposer.org/installer | php 

Now use the following commands to make composer available globally for all users in your system, which can be used for all PHP applications on that system.

sudo mv composer.phar /usr/local/bin/composer 
chmod +x /usr/local/bin/composer 

After installation of the composer on your system. Type composer at the command prompt. This will provide you composer version details along with options available with composer command.

composer 

Output:

  / ____/___  ____ ___  ____  ____  ________  _____
 / /   / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__  )  __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
                    /_/
Composer version 2.0.8 2020-12-03 17:20:38

Usage:
  command [options] [arguments]

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.
  -d, --working-dir=WORKING-DIR  If specified, use the given directory as working directory.
      --no-cache                 Prevent use of the cache

3. Upgrade Composer

You can download the latest version of the composer by executing the same commands used for installation. The composer also has capabilities to update itself. Use the following command to update the composer itself.

sudo composer self-update