PHP code example of nazares / deb-sphp

1. Go to this page and download the library: Download nazares/deb-sphp library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nazares / deb-sphp example snippets

bash
sphp 8.0 #to switch to PHP 8.0 version
sphp 8.1 #to switch to PHP 8.1 version
sphp 8.2 #to switch to PHP 8.2 version
# ...
# etc.
bash
sphp
    # usage: sphp <version>
    # installed php versions: 8.0,8.1,8.2