Useful command line codes in Linux

  • For adding PHP extension
    sudo apt-get install php7.0-zip
  • Installing Laraval(Globally)
    sudo composer global require "laravel/installer"
  • Adding composer to local Path
    curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
  • Reloading composer files.
    composer