Skip to content

Commit 1f322cb

Browse files
committed
initial commit
0 parents commit 1f322cb

File tree

14 files changed

+3084
-0
lines changed

14 files changed

+3084
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/vendor/
2+
/logs/*
3+
!/logs/README.md

README.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# dhtmlxScheduler with php slim-framework
2+
3+
Implementing backend API for dhtmlxScheduler using php Slim-framework and MySQL.
4+
5+
## Requirements
6+
7+
* php 5.5.0^
8+
* composer
9+
* MySQL
10+
11+
12+
## Setup
13+
14+
* clone or download the demo
15+
16+
```
17+
$ git clone https://github.com/DHTMLX/scheduler-howto-slim
18+
$ cd ./scheduler-howto-slim
19+
```
20+
21+
* import database from mysql_dump.sql
22+
23+
```
24+
$ mysql -uuser -ppass scheduler < mysql_dump.sql
25+
```
26+
27+
* update the db connection settings in server.js
28+
* install dependencies using composer
29+
```
30+
$ composer install
31+
```
32+
33+
## Run
34+
35+
### PHP built-in server
36+
37+
`php -S localhost:8080 -t public public/index.php`
38+
39+
### Apache configuration
40+
41+
Ensure your .htaccess and index.php files are in the same public-accessible directory. The .htaccess file should contain this code:
42+
43+
```
44+
RewriteEngine On
45+
RewriteCond %{REQUEST_FILENAME} !-f
46+
RewriteCond %{REQUEST_FILENAME} !-d
47+
RewriteRule ^ index.php [QSA,L]
48+
```
49+
This .htaccess file requires URL rewriting. Make sure to enable Apache’s mod_rewrite module and your virtual host is configured with the AllowOverride option so that the .htaccess rewrite rules can be used:
50+
```
51+
AllowOverride All
52+
```
53+
54+
## References
55+
56+
- Slim Framework https://www.slimframework.com/
57+
58+
## Tutorial:
59+
60+
A complete tutorial here ...

composer.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "slim/slim-skeleton",
3+
"description": "A Slim Framework skeleton application for rapid development",
4+
"keywords": ["microframework", "rest", "router", "psr7"],
5+
"homepage": "http://github.com/slimphp/Slim-Skeleton",
6+
"license": "MIT",
7+
"authors": [
8+
{
9+
"name": "Josh Lockhart",
10+
"email": "info@joshlockhart.com",
11+
"homepage": "http://www.joshlockhart.com/"
12+
}
13+
],
14+
"require": {
15+
"php": ">=5.5.0",
16+
"slim/slim": "^3.1",
17+
"slim/php-view": "^2.0",
18+
"monolog/monolog": "^1.17",
19+
"illuminate/database": "~5.1"
20+
},
21+
"require-dev": {
22+
"phpunit/phpunit": ">=4.8 < 6.0"
23+
},
24+
"autoload-dev": {
25+
"psr-4": {
26+
"Tests\\": "tests/"
27+
}
28+
},
29+
"config": {
30+
"process-timeout" : 0
31+
},
32+
"scripts": {
33+
"start": "php -S localhost:8080 -t public",
34+
"test": "phpunit"
35+
}
36+
37+
}

0 commit comments

Comments
 (0)