PHP code example of rafapaulino / docker-php

1. Go to this page and download the library: Download rafapaulino/docker-php 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/ */

    

rafapaulino / docker-php example snippets

bash
    composer 
bash
    ./vendor/bin/docker-php-install --with=nginx,mysql,redis,mailpit
    
bash
    ./bin/docker-php up
    
bash
    ./bin/docker-php stop
    
bash
    ./bin/docker-php down
    
bash
    ./bin/docker-php shell
    
bash
    ./bin/docker-php composer install
    ./bin/docker-php composer update
    
bash
    ./bin/docker-php artisan migrate
    ./bin/docker-php artisan test
    
bash
    ./bin/docker-php test
    
bash
    ./bin/docker-php ps
    ./bin/docker-php logs -f
    
dotenv
PHP_VERSION=8.2