$config = array( 'db_host' => 'localhost', 'db_name' => 'my_database', 'db_user' => 'my_username', 'db_pass' => 'my_password' );
$config->api_key = 'my_api_key';In this example, an object is used to store an API key as a property. This value can be accessed throughout the application by referencing the $config object. Package libraries that support static configuration in PHP include popular frameworks such as Laravel, Symfony, and Yii. Additionally, there are standalone libraries available, such as phpdotenv, that provide functionality for loading configuration data from environment variables.