src/FileUtil.php
public static function append($source, $data)
    {
        try {
            if (is_file($source)) {
                $file = @fopen($source, 'a');
                @fwrite($file, $data);
                @fclose($file);
                return true;
            }
        } catch (\Exception $e) {
        }
        return false;
    }
public static function append($source, $data)
    {
        try {
            if (is_file($source)) {
                $file = @fopen($source, 'a');
                @fwrite($file, $data);
                @fclose($file);
                return true;
            }
        } catch (\Exception $e) {
        }
        return false;
    }
public static function append ( $ source , $ data ) { try { if ( is_file ( $ source ) ) { $ file = @ fopen ( $ source , 'a' ) ; @ fwrite ( $ file , $ data ) ; @ fclose ( $ file ) ; return true ; } } catch ( \ Exception $ e ) { } return false ; }
append the content to the file.

@param $source
@param $data
@return bool
append the content to the file .