foamycastle/doctrine-config
Composer 安装命令:
composer require foamycastle/doctrine-config
包简介
a generic doctrine configuration wrapper
README 文档
README
Use this package to configure Doctrine connections by using Symfony-style PHP configuration files.
Usage
use Foamycastle\Config\MySQLParams; $config = MySQLParams::fromConfigFile('configFile.php'); //configFile.php use Foamycastle\Config\MySQLSetParams; return static function (MySQLSetParams $config) { $config ->setHost('db_host.com') ->setUser('db_user') ->setPassword(env('DB_PASSWORD')) ->setPort(3306) ->setDatabase('db_name') ->setCharset('utf8mb4'); }
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2025-12-02