Is it advisable to use Composer for managing project-wide values in PHP, or are there better alternatives?

When managing project-wide values in PHP, it is advisable to use a configuration file or a dedicated class to store and retrieve these values. Composer is a tool primarily used for managing dependencies in PHP projects and may not be the best choice for managing project-wide values. By creating a separate configuration file or class, you can easily access and update these values without relying on Composer.

// config.php
return [
    'database_host' => 'localhost',
    'database_name' => 'my_database',
    'database_user' => 'root',
    'database_pass' => 'password'
];
```

// Usage example
```php
$config = require 'config.php';

echo $config['database_host']; // Output: localhost
echo $config['database_name']; // Output: my_database