PHP code example of beebmx / kirby-rickroll

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

    

beebmx / kirby-rickroll example snippets



return [
    'beebmx.kirby-rickroll.urls' => [
        'admin',
        'my-secure-url',
        'this-is-my-admin-url'
    ],
    'beebmx.kirby-rickroll.redirect' => 'https://youtu.be/RfiQYRn7fBg?t=17',
];



return [
    'hooks' => [
        'beebmx.kirby-rickroll.hit' => function ($url) {
            //Do something
        }
    ]
];

json
[
    "wp-login.php",
    "wp-admin",
    "user/login",
    "admin",
    "composer.lock",
    "yarn.lock",
    ".env"
]