/starter-phalcon5-php8-docker

Simple starter Web-project for PHP Phalcon. Docker: php8.2.4 + xdebug3 + phalcon5.2.1

Primary LanguagePHPMIT LicenseMIT

Simple starter Web-project for PHP Phalcon

Description

  • 🦅 Phalcon 5.2.1
  • 🐘 PHP 8.2.4
  • 🐛 Xdebug 3
  • 🗄 MySql 8
  • 🚧 PHPUnit 10

Configuration

⚠️ You need at least 2GB of memory for Docker.

to build:

docker-compose build

to start:

docker-compose up

and go to web 🕸:

http://localhost:80

PHP Fixer

docker exec -it phalcon-php bash -c "vendor/bin/php-cs-fixer fix"

Phalcon 5 Autocomplete

⚙️ Settings > Plugins > Marketplace

Search: Phalcon 5 Autocomplete

Xdebug

How to install and configure PHPStorm for Xdebug.

PHPUnit - PHPStorm settings

Setting PHPStorm

docker exec -it phalcon-php bash -c "vendor/bin/phpunit tests/Functional"
docker exec -it phalcon-php bash -c "vendor/bin/phpunit tests/Units"

Troubleshooting with Windows

If you get an error like this when starting Docker.

phalcon-php | exec /usr/local/bin/entrypoint.sh: no such file or directory