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

@param $source
@param $data
@return bool
create the file .