diff --git a/src/File.php b/src/File.php index f4afa76..8e1dec3 100644 --- a/src/File.php +++ b/src/File.php @@ -49,4 +49,9 @@ public static function fromString($string) { return new static($string); } + + public static function fromUrl($url) + { + return self::fromString(file_get_contents($url)); + } }