PHP code example of croustibat / composer-check

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

    

croustibat / composer-check example snippets


// config/composer-check.php

return [
    'ity' => false,

    'ci' => [
        'format' => 'table',
        'fail_on_outdated' => false,
        'fail_on_major' => false,
    ],

    // Packages to exclude from checks
    'ignore' => [
        // 'vendor/package-name',
    ],
];
bash
php artisan composer:check
bash
php artisan vendor:publish --tag="composer-check-config"
bash
# Standalone
vendor/bin/composer-check --ci

# Laravel
php artisan composer:check --ci
bash
php artisan vendor:publish --tag="composer-check-config"