foo.php
Why indicate constantsat all? The convention I used to see is single-word file names. I think that in most cases, settings like "config" will be permanent in the environment, even if they change between environments.
As an example, consider the aws / aws-sdk-php-laravel composite package. This file has a name config.phpin the package, but is published to aws.php.
rydurham/Sentinel - . .
, , - :
<?php
return [
'sheep' => [
'clothing' => 'wool',
'chews_on' => 'cud',
],
'wolf' => [
'clothing' => 'fur',
'chews_on' => 'sheep',
],
];
Config::get('foo.sheep') Config::get('foo.wolf'), . , " ", . , foo.sheep, , , , foo.wolf.