Base on my improved version of ci4 - Build Your First Application
:
What was added:
- take advantage of template engine like Smarty php
- php: 8.1
- mysql: 8
- Docker
- CodeIgniter: 4.3.6
- Smarty php: 4.3 -> more about it
-
Editor: VS Code (By Microsoft)
-
PHP Intelephense (By Ben Mewburn)
-
PHP Namespace Resolver (By Mehedi Hassan)
-
PHP Awesome Snippets (By HakCorp)
-
Smarty Template Support(Aswin Kumar)
-
To better developement it is taked advantages of this two wonderfull vscode extensions:
- Docker (By Microsoft): to manage docker containers in vs code
- Dev Containers (By Microsoft): to use vscode inside of the container.
php image: read the Dockerfile
mysql image in terminal:
docker run --name db_ci \
-e MYSQL_ROOT_PASSWORD=secret \
-e MYSQL_DATABASE=ci4 \
-e MYSQL_USER=dev \
-e MYSQL_PASSWORD=secret \
-dp 3307:3306 mysql;