Skip to content

Commit bd05bd0

Browse files
committed
Initial commit
1 parent dc28e2f commit bd05bd0

File tree

2 files changed

+58
-1
lines changed

2 files changed

+58
-1
lines changed

.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### Composer template
3+
composer.phar
4+
/vendor/
5+
vendor/
6+
log/*
7+
cache/*
8+
9+
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
10+
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
11+
# composer.lock
12+
### Example user template template
13+
### Example user template
14+
15+
# IntelliJ project files
16+
.idea
17+
*.iml
18+
out
19+
gen

README.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,40 @@
11
# php-cms-admin
2-
Slim3 + Twig + Generic CMS
2+
* Slim3
3+
* Twgig
4+
* Doctrine 2
5+
* Richardson Maturity Model (Level 2)
6+
7+
# Slim 3 Skeleton
8+
9+
This is a simple skeleton project for Slim 3 that includes Twig, Flash messages and Monolog.
10+
forked by https://github.com/akrabat/slim3-skeleton
11+
12+
## Create your project:
13+
14+
$ composer create-project --no-interaction --stability=dev akrabat/slim3-skeleton my-app
15+
16+
### Run it:
17+
18+
1. `$ cd my-app`
19+
2. `$ php -S 0.0.0.0:8888 -t public public/index.php`
20+
3. Browse to http://localhost:8888
21+
22+
## Key directories
23+
24+
* `app`: Application code
25+
* `app/src`: All class files within the `App` namespace
26+
* `app/templates`: Twig template files
27+
* `cache/twig`: Twig's Autocreated cache files
28+
* `log`: Log files
29+
* `public`: Webserver root
30+
* `vendor`: Composer dependencies
31+
32+
## Key files
33+
34+
* `public/index.php`: Entry point to application
35+
* `app/settings.php`: Configuration
36+
* `app/dependencies.php`: Services for Pimple
37+
* `app/middleware.php`: Application middleware
38+
* `app/routes.php`: All application routes are here
39+
* `app/src/Action/HomeAction.php`: Action class for the home page
40+
* `app/templates/home.twig`: Twig template file for the home page

0 commit comments

Comments
 (0)