PHP

From bibbleWiki
Jump to navigation Jump to search

Setting up VS Code

We need to install

sudo apt install php-cli composer php-xml

You will need to set up php-cs-fixer first. Extensions suggested are

  • PHP Intelephense
  • PHP Getters & Setters
  • PHP debug
  • PHP CS Fixer
  • Twig Language 2
  • SQLTools

Creating Project With Composer

To create a project you need to run the following. The only tricky bit is the name where they want vendor/name e.g. bibble/test

composer init