Skip to content

Commit

Permalink
Added lesson 12 - .env and Database support
Browse files Browse the repository at this point in the history
  • Loading branch information
mcspronko committed Jun 21, 2021
1 parent 36b4ba9 commit 66881a8
Show file tree
Hide file tree
Showing 7 changed files with 203 additions and 245 deletions.
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DATABASE_DSN=mysql:host=127.0.0.1;dbname=blog_php
DATABASE_USERNAME=root
DATABASE_PASSWORD=
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"slim/slim": "^4.7",
"twig/twig": "^3.1",
"ext-PDO": "^7.4",
"php-di/php-di": "6.3.4"
"php-di/php-di": "6.3.4",
"devcoder-xyz/php-dotenv": "^1.0"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 66881a8

Please sign in to comment.