選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
Raf Vergauwen 59e754893e added some extra documentation 2年前
.vscode added some extra documentation 2年前
private added some extra documentation 2年前
public added some extra documentation 2年前
src added some extra documentation 2年前
templates added some extra documentation 2年前
.browserslistrc added some extra documentation 2年前
.editorconfig added some extra documentation 2年前
.gitattributes added some extra documentation 2年前
.gitignore added some extra documentation 2年前
.markdownlint.json added some extra documentation 2年前
.prettierignore added some extra documentation 2年前
.prettierrc added some extra documentation 2年前
LICENSE added some extra documentation 2年前
README.md added some extra documentation 2年前
composer.json added some extra documentation 2年前
composer.lock added some extra documentation 2年前

README.md

Microblog

A - Lessons

  1. Initiatie Docker
  2. Installatie Slim
  3. Slim eerste stappen
  4. POST en Debugging
  5. POST en GET Routes
  6. POST/GET mep any routes en routeparams
  7. Start BLOG project
  8. Blog build-up
  9. Add blog post
  10. SQL Injection
  11. Namespaces
  12. Namespaces toepassing
  13. Twig to module
  14. Twig templates

B - Basic Commands Docker

B1 - Use composer

docker run --rm -t -i -v ${PWD}:/app debaetsr/composer2 <the rest of the command>

B2 - Install Slim

  1. Create a new folder

  2. Install Slim 4

docker run --rm -t -i -v ${PWD}:/app debaetsr/composer2 require slim/slim:"4.\*"
  1. Install PSR-7 implementation for use with Slim 4
docker run --rm -t -i -v ${PWD}:/app debaetsr/composer2 require slim/psr7
  1. Install Twig 3
docker run --rm -t -i -v ${PWD}:/app composer require "twig/twig:^3.0"
  1. Modify composer.json by adding the following just before the last parenthesis
"config": {
"platform-check": false
}
  1. Update Composer2
docker run --rm -t -i -v ${PWD}:/app debaetsr/composer2 update

B3 - Start PHP

docker run --rm -t -i -v ${PWD}:/src -p 8080:8000 debaetsr/php_xdebug

B4 - Use Debug

  1. If necessary, create a new launch.json file, and replace (or add) the “Listen for XDebug” with the following (note parentheses and commas):
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9003,
"pathMappings": { "/src": "${workspaceRoot}" }
},
  1. The first time when debugging, add this in the URL
?XDEBUG_SESSION_START=1

B5 - Other

php -S 0.0.0.0:8000 -t public