Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
koelle25 committed Dec 8, 2017
2 parents 03f78d7 + 8291241 commit 0c474c6
Show file tree
Hide file tree
Showing 63 changed files with 1,478 additions and 53,223 deletions.
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# PST-Stack
PST (Propel ORM - Slim Framework - Twig Template Engine) Stack in PHP is the most sophisticated stack to quickly build any kind of PHP application. This open source technology stack will let you create your application within maximum 120 seconds (2 minutes) without any hassle.
PST (Propel ORM - Slim Framework - Twig Template Engine) Stack in PHP is the most sophisticated stack to quickly build any kind of PHP application. This open source technology stack will let you create your application within a maximum of 120 seconds (2 minutes) without any hassle.

This stack was first created to quickly build any prototype or any quick but powerful web applicaiton within hours or a day and after that I made it open source to make your work more easy.
This stack was first created to quickly build any prototype or any quick but powerful web application within hours or a day and after that I made it open source to make your work more easy.

It includes user authentication/registration and some useful middleware (authenticated-/guest-only routes, CSRF, validation, saving old form input across requests).

Expand Down Expand Up @@ -31,6 +31,7 @@ After you have installed Composer, run these commands from the directory in whic
```bash
$ mysql -u root -p create [your-database-name]
```

4. Configure Propel and generate it's ORM classes:
- Copy/paste `config/settings.sample` => `config/settings.php`
- Copy/paste `propel/propel.sample` => `propel/propel.xml`
Expand All @@ -49,20 +50,21 @@ After you have installed Composer, run these commands from the directory in whic
$ ../vendor/propel/propel/bin/propel config:convert
$ ../vendor/propel/propel/bin/propel sql:insert
```
6. Again, go into your project root, autoload newly generated propel classmap:
6. _*nix only_: Make `tmp` writable:
```bash
$ cd /var/www/[your-app-name]
$ composer dump-autoload
```
7. _*nix only_: Make `tmp` writable:
```bash
$ chmod -R 777 tmp/
```

That's it! Now go build something cool. Go to your browser and type your application host (according to your virtual host). You can signup and login into the application by yourself.

## Credits
This stack is build upon following resources:
This stack is built upon following resources:
- [PreviewTechnologies/pst-stack](https://github.com/PreviewTechnologies/pst-stack)
- [StyxOfDynamite/pst-stack](https://github.com/StyxOfDynamite/pst-stack)
- [Codecourse/Authentication with Slim 3](https://www.youtube.com/playlist?list=PLfdtiltiRHWGc_yY90XRdq6mRww042aEC)
- [Propel ORM](http://propelorm.org/)
- [Slim Framework](https://www.slimframework.com/)
- [Twig Template Engine](https://twig.symfony.com/)
- [Bootstrap 4.0](http://getbootstrap.com/docs/4.0/)
- [FontAwesome 5](https://fontawesome.com/)
1 change: 1 addition & 0 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'check' => $container->auth->check(),
'user' => $container->auth->user()
]);
$view->getEnvironment()->addGlobal('title', $conf['app.name']);

return $view;
};
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
"homepage": "https://github.com/koelle25/pst-stack",
"license": "MIT",
"require": {
"php": ">=5.3.0",
"php": ">=7.0.0",
"monolog/monolog": "^1.22",
"slim/slim": "^3.8",
"propel/propel": "~2.0@dev",
"ircmaxell/password-compat": "^1.0",
"respect/validation": "^1.1",
"slim/twig-view": "^2.2",
"slim/flash": "^0.2.0",
"hassankhan/config": "^0.10.0",
"slim/flash": "^0.4.0",
"hassankhan/config": "^0.11.2",
"slim/csrf": "^0.8.1",
"kanellov/slim-twig-flash": "^0.2.0",
"oscarotero/psr7-middlewares": "^3.20",
Expand Down
Loading

0 comments on commit 0c474c6

Please sign in to comment.