-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
52 lines (49 loc) · 1.64 KB
/
composer.json
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
{
"name": "lagan/lagan-todobackend",
"type": "project",
"description": "A Todo-Backend example built with Lagan.",
"keywords": ["cms","content", "backend","slim","redbean","twig","todobackend","api","rest"],
"license": "MIT",
"authors": [
{
"name": "Lútsen Stellingwerff",
"email": "lutsenstellingwerff@gmail.com",
"homepage": "http://www.hoverkraft.nl",
"role": "Developer"
}
],
"require": {
"php": ">=5.5.0",
"gabordemooij/redbean": "^4.0",
"slim/slim": "^3.0",
"slim/twig-view": "^2.0",
"slim/flash": "^0.2",
"twig/twig": "^1.0",
"tuupola/slim-basic-auth": "^2.0",
"lagan/core": "^1.0",
"lagan/property-boolean": "^1.0",
"lagan/property-hashid": "^1.0",
"lagan/property-position": "^1.0",
"lagan/property-slug": "^1.0",
"lagan/property-string": "^1.0",
"lagan/template-checkbox": "^1.0",
"lagan/template-readonly": "^1.0",
"lagan/template-text": "^1.0",
"lagan/template-textarea": "^1.0"
},
"scripts": {
"post-update-cmd": [
"php -r \"// Create RedBean rb.php file\"",
"php -r \"chdir('vendor/gabordemooij/redbean'); require('replica2.php');\""
],
"post-create-project-cmd": [
"php -r \"// Create cache directory\"",
"php -r \"mkdir('cache', 0755);\"",
"php -r \"// Rename config file\"",
"php -r \"rename('config_example.php', 'config.php');\"",
"php -r \"// Setting ROOT_PATH in config file\"",
"php -r \"file_put_contents('config.php', str_replace('define(\\'ROOT_PATH\\', \\'\\')', 'define(\\'ROOT_PATH\\', \\''.__DIR__.'\\')', file_get_contents('config.php') ) );\"",
"php -r \"echo PHP_EOL . ' Thank you for installing Lagan! ' . PHP_EOL . PHP_EOL;\""
]
}
}