-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.php
70 lines (53 loc) · 1.19 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
require __DIR__ . '/vendor/autoload.php';
use ComposerUI\ComposerHelper;
function debug($var) {
echo '<pre>';
print_r($var);
echo '</pre>';
}
$composer = new ComposerHelper();
debug('welcome to ComposerTools. This stuff is needed before setting up a full working UI');
/**
* Call composer
*
* You can call composer by calling `composer`.
*/
//$composer->composer();
/**
* Install packages
*
* You can install composer packages by calling `install`.
*/
//$composer->install();
/**
* Archive composer
*
* You can archive composer by calling `archive`.
*/
//$composer->archive();
/**
* Installing packages
*
* You can installing a package by calling `requirePackages`.
* Use the first parameter to define the package.
* Use the second parameter to define the version.
*/
//$composer->requirePackages([
// 'symfony/stopwatch' => 'dev-master',
//]);
/**
* Removing packages
*
* You can remove a package by calling `removePackages`.
* Use the first parameter to define the package.
*/
//$composer->removePackages([
// 'symfony/stopwatch' => 'dev-master',
//]);
/**
* Update packages
*
* You can update composer by calling `update`.
*/
//$composer->update();