Composer on cPanel: Managing PHP Dependencies Print


Composer is a dependency manager for PHP that allows you to manage packages and libraries in your projects.

How to Use Composer:

  1. Access your account via SSH (see SSH article).
  2. Navigate to your project directory:
    cd ~/public_html/yourproject
  3. Run:
    composer install or composer update

Common Uses:

  • Install Laravel: composer create-project laravel/laravel
  • Update vendor libraries: composer update

Composer is pre-installed on Aviumshost shared and VPS hosting environments.


Was this answer helpful?

Related Articles

How to Use SSH Access on Shared Hosting SSH (Secure Shell) provides encrypted command-line access to your hosting account — ideal for... Managing Cron Jobs in cPanel Cron Jobs allow you to automate repetitive tasks like running scripts at set intervals. Steps to... Custom .htaccess Rules for Advanced Configuration The .htaccess file allows you to control many Apache settings for your site. Common Uses:... Using Git Version Control in cPanel Track changes and deploy code efficiently using Git from your Aviumshost cPanel. Create a Git... PHP Configuration Overrides (php.ini & .user.ini) You can customize PHP settings like memory limit or max upload size without needing root access....
« Back