PHP code example of dappcore / php-install
1. Go to this page and download the library: Download dappcore/php-install 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/ */
dappcore / php-install example snippets
use Core\Mod\Install\Schema\InstallState;
use Core\Mod\Install\Schema\SchemaInspector;
$inspector = app(SchemaInspector::class);
match ($inspector->state()) {
InstallState::Fresh => /* run the installer */,
InstallState::Upgrade => /* offer the pending migrations */,
InstallState::Recovery => /* show $inspector->missingTables() */,
InstallState::Ready => /* carry on */,
};
bash
composer