PHP code example of justinholtweb / craft-garrison

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

    

justinholtweb / craft-garrison example snippets


return [
    '*' => [
        'maxLoginAttempts' => 5,
        'lockoutDuration' => 300,
        'enableAuditLog' => true,
        'scanSchedule' => 'daily',
    ],
    'production' => [
        'enableRateLimiting' => true,
        'enableFileIntegrity' => true,
        'enableNotifications' => true,
        'emailRecipients' => ['[email protected]'],
        'slackWebhookUrl' => '$SLACK_WEBHOOK_URL',
    ],
];
bash
cp vendor/justinholtweb/craft-garrison/src/config.php config/garrison.php