> ## Documentation Index
> Fetch the complete documentation index at: https://sol.advantagelearn.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Php

# PHP

## PHP8.0 Upgrade Guide

* Install php-fpm8.0
* Installl php curl extension `sudo apt-get install php-curl` so that composer doesn't take forever
* Install php-xml with `sudo apt install php-xml` so that you get the dom extension required by phpunit
* Install php GD extension with `sudo apt install php-gd` as its required by phpspreadsheet
* Install php zip extension with `sudo apt install php-zip` as its required by phpspreadsheet
* Install php mysql extension `sudo apt-get install php-mysql`
* Install php SQLite extension or else tests will fail `sudo apt install php8.0-sqlite3`
* Install GRPC extension so that google/cloud-firestore works with `sudo apt install php8.0-grpc`
* Update valet
* Run `valet use 8.0`

### Full script for ubuntu servers

```bash theme={null}
sudo bash -c 'apt install php8.0-curl php8.0-xml php8.0-gd php8.0-zip php8.0-mysql php8.0-sqlite3 php8.0-grpc'
```
