PHP code example of lemaur / toolbox

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

    

lemaur / toolbox example snippets

bash
php artisan toolbox:install
bash
php artisan toolbox:install --test-suites
bash
php artisan toolbox:install --only="static-analysis"
bash
php artisan toolbox:install --only="static-analysis" --only="code-style"
bash
"scripts": {
    "ide-helper": [
        "@php artisan ide-helper:models --write-mixin --reset",
        "@php artisan ide-helper:generate",
        "@php artisan ide-helper:eloquent",
        "@php artisan ide-helper:meta"
    ],
    "analyse": "./vendor/bin/phpstan analyse --memory-limit=2G",
    "refactor": "./vendor/bin/rector process  --memory-limit=2G",
    "format": "./vendor/bin/pint",
    "test": "./vendor/bin/pest --exclude-group=e2e",
    "test:fast": "./vendor/bin/pest --exclude-group=e2e --parallel",
    "test:coverage": "./vendor/bin/pest --exclude-group=e2e --coverage --min=50 --coverage-html=.coverage --coverage-clover=coverage.xml",
    "test:e2e": "@php artisan pest:dusk",
    "test:mutation": [
        "Composer\\Config::disableProcessTimeout",
        "XDEBUG_MODE=coverage vendor/bin/infection --show-mutations --threads=4 --only-covering-test-cases --min-msi=25 --min-covered-msi=85 --test-framework=pest --test-framework-options='--configuration=phpunit.xml --exclude-group=e2e'"
    ]
}
bash
composer analyse