PHP code example of alex-kassel / laravel-package-audit

1. Go to this page and download the library: Download alex-kassel/laravel-package-audit 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/ */

    

alex-kassel / laravel-package-audit example snippets


return [
    // Toggle individual quality gates
    'checks' => [
        'composer_validate' => true,
        'pint' => true,
        'phpstan' => ['enabled' => true, 'level' => 8],
        'tests' => true,
        'isolated' => true,
        'readme' => ['enabled' => true],
        'export_ignore' => true,
        'git_cleanliness' => true,
    ],

    // Target skills directory (null for smart auto-detection: .agents/skills or .cursor/skills)
    'skills_path' => null,

    // Auto-materialize skill into host during local discovery
    'auto_publish_skill' => true,

    // Certificate settings
    'certificate_filename' => 'AUDIT.json',
    'git' => [
        'tag_prefix' => 'audit/v',
        'commit_message' => 'Audit certificate for v{version}',
    ],
];
bash
php artisan vendor:publish --tag=package-audit-config
php artisan vendor:publish --tag=package-audit-stubs
bash
php artisan vendor:publish --tag=package-audit-config