PHP code example of klarsmith / wp-ops-kit

1. Go to this page and download the library: Download klarsmith/wp-ops-kit 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/ */

    

klarsmith / wp-ops-kit example snippets


 // mu-plugins/wp-ops-kit-loader.php
bash
docker run --rm -v "$PWD":/app -w /app composer:2 install
docker run --rm -v "$PWD":/app -w /app php:8.5-cli \
  php -d opcache.enable_cli=1 vendor/bin/phpunit