1. Go to this page and download the library: Download drupflare/rom 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/ */
drupflare / rom example snippets
$databases['default']['default'] = [
'driver' => 'cfw_do_sqlite',
'namespace' => 'Drupal\\cfw_do_sqlite\\Driver\\Database\\cfw_do_sqlite',
'autoload' => 'modules/contrib/cfw_do_sqlite/src/Driver/Database/cfw_do_sqlite/',
'prefix' => '',
];
// NOT optional: this Connection extends the core sqlite one, and replacing the
// default connection removes the only entry that would have registered its namespace
$class_loader->addPsr4(
'Drupal\\sqlite\\Driver\\Database\\sqlite\\',
$app_root . '/core/modules/sqlite/src/Driver/Database/sqlite/',
);
sh
composer install
composer run lint # phpcs: docs, naming, API misuse
composer run analyze # phpstan level 5, --memory-limit=1G
bunx prettier --check . # layout, every language including PHP
DRUPAL_ROOT=/path/to/drupal php tests/run-driver-suite.php
php tests/run-installer.php # 16; installs Drupal for real
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.