-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcarbuncle.php
More file actions
23 lines (17 loc) · 773 Bytes
/
Copy pathcarbuncle.php
File metadata and controls
23 lines (17 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
ini_set('display_errors', true);
error_reporting(E_ALL);
// Unpacking the archives takes quite a lot of memory, 4G should be more than enough tho
ini_set('memory_limit','4G');
// TODO: Custom autoloader would be a lot nicer
require_once 'classmap.php';
if(version_compare(PHP_VERSION, '8.0.0', '<')) {
exit("PHP 8 is required to run this script!\n");
}
if(!function_exists("json_decode")) {
exit("Your PHP installation does not include the json extension which is necessary for reading and writing the configuration.\n");
}
if(!class_exists('PharData')) {
exit('The Phar-Extension is missing on your PHP installation. This is required to unpack the archives downloaded from github.');
}
$carbuncle = new Realitaetsverlust\Carbuncle\Carbuncle($argv);