PHP code example of forgelab-me / ci4-updater
1. Go to this page and download the library: Download forgelab-me/ci4-updater 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/ */
forgelab-me / ci4-updater example snippets
// app/Config/Filters.php
public array $aliases = [
'maintenance' => \Forgelabme\Ci4Updater\Filters\Maintenance::class,
];
public array $globals = [
'before' => [
'maintenance' => ['except' => ['admin/updates', 'admin/updates/*']],
],
];
bash
php spark updater:check --quiet || php spark updater:apply --yes