chiqui3d/php-directives-bundle

此软件包已被弃用,不再维护。没有建议的替代软件包。

一个小巧且简单的 Symfony Bundle,用于为您的项目添加 PHP 指令

安装: 44

依赖项: 0

建议者: 0

安全: 0

星标: 0

关注者: 1

分支: 0

开放问题: 0

类型:symfony-bundle

dev-master / 1.0.x-dev 2020-01-01 20:54 UTC

This package is auto-updated.

Last update: 2022-03-01 00:33:01 UTC


README

一个小巧且简单的 Symfony Bundle,用于为您的项目添加 PHP 指令

指令文档

PHP => https://php.ac.cn/manual/en/ini.list.php

地区设置 => https://php.ac.cn/manual/en/function.setlocale.php

要求

  • Symfony 4.4 或更高版本

安装

composer require chiqui3d/php-directives-bundle

检查该 Bundle 是否出现在 config/bundles.php 中

PHPDirectivesBundle\PHPDirectivesBundle::class => ['all' => true],

添加指令

config/packages/php_directives.yaml

这些指令将被加载到项目的任何部分。

php_directives:
    php:
        date.timezone: Europe/Madrid
    locale:
        LC_MONETARY: es_ES

许可证

此软件包可在 MIT 许可证下使用。