GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - phalcon/tutorial: Phalcon Tutorial

BranchesTags
Open more actions menu

Latest commit

 

History

67 Commits
67 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
public
public
 
 
resources
resources
 
 
src
src
 
 
tests
tests
 
 
.dockerignore
.dockerignore
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.htaccess
.htaccess
 
 
.htrouter.php
.htrouter.php
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
composer.lock
composer.lock
 
 
docker-compose.yml
docker-compose.yml
 
 

Repository files navigation

Phalcon Tutorial

This is a small sample application for the Phalcon PHP Framework: a simple registration form built as an MVC app. It is the companion code for the Basic Tutorial documentation page and runs on both Phalcon 5 (the C extension) and Phalcon 6 (the phalcon/phalcon Composer package).

Requirements

  • PHP >= 8.1
  • Phalcon 5 (C extension) or Phalcon 6 (Composer package)
  • MySQL 8.0
  • Docker (recommended for local development)

Quick start (Docker)

cp resources/.env.example .env
docker compose up -d --build

Then open http://localhost:8080. The database schema and a seed user are loaded automatically on first boot.

To run on Phalcon 6 instead of 5, set PHALCON_VARIANT=v6 in .env (or export it) and rebuild:

PHALCON_VARIANT=v6 docker compose up -d --build

To open a shell in the app container:

docker compose exec app bash

Composer scripts

Script What it does
composer cs Check coding standard (PSR-12) with PHPCS
composer cs-fix Auto-fix coding standard with PHPCBF
composer cs-fixer Check style with PHP-CS-Fixer (dry-run)
composer cs-fixer-fix Apply PHP-CS-Fixer changes
composer analyze Static analysis with PHPStan (level 6)
composer test Run the functional smoke test (Talon)

Project layout

This project follows the PDS skeleton:

docs/        documentation
public/      web root (index.php, css)
resources/   tooling configs, docker, schema, .env.example
src/         application source (PSR-4 Tutorial\)
tests/       Talon functional test

License

The Phalcon Tutorial is open-sourced software licensed under the MIT license. © Phalcon Framework Team and contributors.

About

Phalcon Tutorial

docs.phalcon.io/latest/tutorial-base

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

155 stars

Watchers

27 watching

Forks

130 forks
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.