Files
php_db_components_pack/tests/database_config_sample.php
2025-08-20 18:09:37 +03:00

13 lines
501 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
use goodboyalex\php_db_components_pack\enums\DBDriver;
use goodboyalex\php_db_components_pack\models\DBConfig;
$testConfig = new DBConfig(
driver: DBDriver::MySQL, # ВЫБЕРЕТЕ НУЖНЫЙ ДРАЙВЕР
host: 'ХОСТ БАЗЫ ДАННЫХ',
port: 0, # ПОРТ
name: 'ИМЯ БАЗЫ ДАННЫХ',
userName: "ПОЛЬЗОВАТЕЛЬ БАЗЫ ДАННЫХ",
password: 'ПАРОЛЬ ПОЛЬЗОВАТЕЛЯ'
);