Created
June 11, 2014 12:42
-
-
Save alfredbez/7d73f29c93d060b68cef to your computer and use it in GitHub Desktop.
Lädt und entpackt Github Repo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
set_time_limit(0); | |
file_put_contents("tmp/download-module.zip", fopen("https://github.com/author/repo/archive/master.zip", 'r')); | |
$zip = new ZipArchive; | |
$res = $zip->open('tmp/download-module.zip'); | |
if ($res === TRUE) { | |
$zip->extractTo('modules/'); | |
$zip->close(); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment