What are some best practices for including language files in PHP classes?

When including language files in PHP classes, it is best practice to use constants to define the file paths and then include the language file within the class constructor. This ensures that the language file is loaded only when the class is instantiated, reducing unnecessary overhead.

class MyClass {
    const LANG_FILE_PATH = 'path/to/language_file.php';

    public function __construct() {
        include_once(self::LANG_FILE_PATH);
    }

    // Other class methods
}