1. Go to this page and download the library: Download softmax/installer 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/ */
use Softmax\Installer\Facades\Installer;
// Check if application is installed
if (Installer::isInstalled()) {
// Application is installed
}
// Verify encryption key
if (Installer::verifyEncryptionKey()) {
// Key is valid
}
// Check system
use Softmax\Installer\Services\InstallerService;
class CustomInstallerService extends InstallerService
{
public function customInstallationStep(array $data): array
{
// Your custom installation logic
return [
'success' => true,
'message' => 'Custom step completed successfully.'
];
}
}