phalcon/vokuro
This is a sample application for the Phalcon PHP Framework
Maintainers
Requires
- php: >=8.1
- ext-openssl: *
- robmorgan/phinx: ^0.16
- symfony/mailer: ^6.4
- vlucas/phpdotenv: ^5.6
Requires (Dev)
- codeception/codeception: ^5.0
- codeception/module-asserts: ^3.0
- codeception/module-phpbrowser: ^3.0
- friendsofphp/php-cs-fixer: ^3.95
- pds/composer-script-names: ^1.0
- pds/skeleton: ^1.0
- phalcon/phalcon: ^6.0@alpha
- phalcon/phql: 1.0.x-dev
- phalcon/volt: 1.0.x-dev
- phpstan/phpstan: ^2.2
- squizlabs/php_codesniffer: ^4.0
Suggests
- ext-apcu: Needed to support caching ACL
- ext-phalcon: Install the Phalcon v5 C extension to run on v5 (the default); alternatively run on v6 via the phalcon/phalcon package - see the Dockerfile PHALCON_VARIANT build arg and the README.
Provides
None
Conflicts
None
Replaces
None
BSD-3-Clause 90de8afac9742796f9a2e141db615be942138027
- Mark Garrett <mark.woop@moderndeveloperllc.com>
- Anton Vasiliev
- Contributors
This package is auto-updated.
Last update: 2026-06-28 04:52:42 UTC
README
๐ Discord
๐ Phalcon Backers
Vรถkurรณ is the sample application for the Phalcon Framework. It showcases authentication, ACL-based permissions, user/profile management, forms, mailing and more.
It runs on Phalcon v5 (the C extension, default) and on Phalcon v6
(the phalcon/phalcon package, currently alpha) from the same source.
Requirements
- PHP 8.1 โ 8.5
- MySQL 8.0 (provided by the Docker stack)
- Docker + Docker Compose (recommended), or a local PHP with the Phalcon extension (see docs/installation.md)
Quick start (Docker)
cp resources/.env.example .env docker compose up -d --build # Create and seed the database (migrations are not run on boot) docker compose exec app composer migrate docker compose exec app composer seed
Note:
appis the Compose service name, used as-is bydocker compose execabove. The running container, however, is named${PROJECT_PREFIX}-app-vokuro-appby default, set viaPROJECT_PREFIXin.env. If you address it with plaindocker exec, type your container name instead, e.g.docker exec vokuro-app composer migrate(substitute your own prefix).
Then open:
- Application: http://localhost:8080
- Mailpit (captured e-mails): http://localhost:8025
The container waits for MySQL and serves the app; migrations are decoupled from boot - apply them with the commands above.
Log in with one of the seeded accounts, e.g. sarah.connor@skynet.dev / password1.
Choosing the Phalcon version
docker compose up -d --build # v5 (C extension, default) PHALCON_VARIANT=v6 docker compose up -d --build # v6 (phalcon/phalcon, alpha)
The two are mutually exclusive: the v5 image installs the C extension, the v6 image installs the pure-PHP package instead.
Choosing the PHP version
The image is built for one PHP version at a time, selected with the PHP_VERSION
build arg (default 8.5; supported 8.1โ8.5):
docker compose up -d --build # PHP 8.5 (default) PHP_VERSION=8.1 docker compose up -d --build # PHP 8.1 PHP_VERSION=8.2 docker compose up -d --build # PHP 8.2 PHP_VERSION=8.3 docker compose up -d --build # PHP 8.3 PHP_VERSION=8.4 docker compose up -d --build # PHP 8.4
PIE compiles the Phalcon C extension (and pcov) from source for the selected version.
The container keeps the same name (vokuro-app), so each rebuild replaces the
previous one. To run several versions side by side, give each its own Compose project
and prefix:
PHP_VERSION=8.1 PROJECT_PREFIX=vokuro81 docker compose -p vokuro81 up -d --build
# then: docker exec -w /srv vokuro81-app composer test
Composer scripts
Run them inside the container, e.g. docker compose exec app composer cs:
| Script | Description |
|---|---|
composer cs |
PHP_CodeSniffer (PSR-12) |
composer cs-fix |
Auto-fix coding standard issues (phpcbf) |
composer cs-fixer |
PHP CS Fixer (dry-run) |
composer cs-fixer-fix |
Apply PHP CS Fixer |
composer analyze |
PHPStan static analysis |
composer test |
PHPUnit suites (unit + functional) |
composer test-coverage |
PHPUnit + Clover coverage (tests/_output/coverage.xml) |
composer migrate |
Run database migrations (Phinx) |
composer seed |
Seed the database |
composer analyzeresolves Phalcon classes from thephalcon/phalcon(v6) source, so run it where the v5 C extension is not loaded (the CIqualityjob, or a plain host). The coding-standard and test scripts are unaffected.
Updating Phalcon
- v5 - bump
PHALCON_V5_CONSTRAINTinresources/docker/Dockerfileand rebuild:docker compose build app. PIE compiles the C extension from source (this is the only way to update a C extension). - v6 -
docker compose exec app composer update phalcon/phalcon(no rebuild). Dependabot opens the bump PR automatically.
Project layout
Follows the PDS skeleton:
config/ application configuration
docs/ documentation
public/ web server root
resources/ tooling configs, docker, phinx, migrations, seeds
src/ application source
tests/ PHPUnit suites (unit, functional)
themes/ Volt views
var/ runtime cache and logs
License
Vรถkurรณ is open-sourced software licensed under the New BSD License.
