PHPackages                             codeception/phalcon-demo - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. codeception/phalcon-demo

ActiveProject[Testing &amp; Quality](/categories/testing)

codeception/phalcon-demo
========================

Phalcon Demo Application to demonstrate basics of Codeception testing.

v2.0.0(6y ago)4223215[1 issues](https://github.com/Codeception/phalcon-demo/issues)BSD-3-ClausePHPPHP &gt;=7.2.0 &lt;8.0

Since Oct 16Pushed 4y ago16 watchersCompare

[ Source](https://github.com/Codeception/phalcon-demo)[ Packagist](https://packagist.org/packages/codeception/phalcon-demo)[ Docs](https://github.com/Codeception/phalcon-demo)[ RSS](/packages/codeception-phalcon-demo/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (9)Versions (8)Used By (0)

Phalcon Demo Application
========================

[](#phalcon-demo-application)

[![Build Status](https://camo.githubusercontent.com/8aa75c863e5f03cc46ff0da9a0afda30e3127032b2ae5f488c53d616eb9331c4/68747470733a2f2f7472617669732d63692e6f72672f436f646563657074696f6e2f7068616c636f6e2d64656d6f2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Codeception/phalcon-demo)

We use **modified** [Phalcon INVO Application](https://github.com/phalcon/invo/) to demonstrate basics of Codeception testing. We expect to implement as many features as possible to showcase the framework and its potential.

Please write us if you have any feedback.

Thanks.

NOTE
----

[](#note)

The master branch will always contain the latest stable version. If you wish to check older versions or newer ones currently under development, please switch to the relevant branch.

Get Started
-----------

[](#get-started)

### Requirements

[](#requirements)

- PHP &gt;= 7.2
- Latest stable [Phalcon Framework v4](https://github.com/phalcon/cphalcon/releases) extension enabled
- [MySQL](https://www.mysql.com/) &gt;= 5.1.5
- Codeception &gt;= 4.0

### Installation

[](#installation)

#### The Composer way (recommended)

[](#the-composer-way-recommended)

Using Composer, you can create a new project, write this code on your terminal:

```
composer create-project codeception/phalcon-demo --prefer-dist
```

After running this command, there should be an output, similar below:

```
Installing codeception/phalcon-demo (version)
  - Installing codeception/phalcon-demo (version)

Created project in
Loading composer repositories with package information
Updating dependencies (including require-dev)

...
...
...

Writing lock file
Generating autoload files
Do you want to remove the existing VCS (.git, .svn..) history? [Y,n]? y

```

#### The Git way

[](#the-git-way)

Another way to fetch project by using `git clone`:

First you need to clone this repository:

```
git clone git@github.com:Codeception/phalcon-demo.git
```

Install composer in a common location or in your project:

```
curl -s http://getcomposer.org/installer | php
```

Then install dependencies:

```
php composer.phar install
```

#### Setup Database

[](#setup-database)

A MySQL database is also bundled in this project. The connection to the database is required for several tests. You'll need to create the database and initialize schema.

You can create a database as follows:

```
echo 'CREATE DATABASE phalcon_demo CHARSET=utf8 COLLATE=utf8_unicode_ci' | mysql -u root
```

then initialize schema:

```
cat schemas/phalcon_demo.sql | mysql -u root phalcon_demo

```

**Note:**

For these tests we use the user `root` with `password` as password. You may need to change this in `tests/codeception.yml`. You can override application config by creating `app/config/config.ini.dev` (already gitignored).

Tests
-----

[](#tests)

Phalcon Demo Application uses [Codeception](https://codeception.com/) functional, acceptance and unit tests.

First you need to re-generate base classes for all suites:

```
vendor/bin/codecept build
```

You can execute all test with `run` command:

```
vendor/bin/codecept run

# OR detailed output
vendor/bin/codecept run --debug
```

Read more about the installation and configuration of Codeception:

- [Codeception Introduction](https://codeception.com/docs/01-Introduction)
- [Codeception Console Commands](https://codeception.com/docs/reference/Commands)

If you cannot run the tests, please refer to the `.travis.yml` file for more instructions how we test Phalcon Demo Application. For detailed information on our application environment setting refer to `app/config/env.php` file.

### Functional Tests

[](#functional-tests)

Demonstrates testing of CRUD application with:

- [UserSteps](https://github.com/Codeception/phalcon-demo/blob/master/tests/_support/User/Functional/UserSteps.php)

Contributing
------------

[](#contributing)

See [CONTRIBUTING.md](https://github.com/Codeception/phalcon-demo/blob/master/CONTRIBUTING.md)

License
-------

[](#license)

Phalcon Demo Application is open-sourced software licensed under the [New BSD License](https://github.com/Codeception/phalcon-demo/blob/master/LICENSE.txt).
© 2012 - 2020 Phalcon Framework Team and contributors
© 2015 - 2020 Codeception Team and contributors

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 86.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~235 days

Recently: every ~294 days

Total

6

Last Release

2323d ago

Major Versions

v1.0.2 → v3.x-dev2018-10-23

v3.x-dev → v4.x-dev2020-01-06

PHP version history (2 changes)v1.0.0PHP &gt;=5.4

v4.x-devPHP &gt;=7.2.0 &lt;8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/97648?v=4)[davert](/maintainers/davert)[@davert](https://github.com/davert)

---

Top Contributors

[![sergeyklay](https://avatars.githubusercontent.com/u/1256298?v=4)](https://github.com/sergeyklay "sergeyklay (93 commits)")[![ruudboon](https://avatars.githubusercontent.com/u/7444246?v=4)](https://github.com/ruudboon "ruudboon (12 commits)")[![Arhell](https://avatars.githubusercontent.com/u/26163841?v=4)](https://github.com/Arhell "Arhell (2 commits)")[![DavertMik](https://avatars.githubusercontent.com/u/220264?v=4)](https://github.com/DavertMik "DavertMik (1 commits)")

---

Tags

codeceptionphalcondemophalcon4

###  Code Quality

TestsCodeception

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/codeception-phalcon-demo/health.svg)

```
[![Health](https://phpackages.com/badges/codeception-phalcon-demo/health.svg)](https://phpackages.com/packages/codeception-phalcon-demo)
```

###  Alternatives

[lucatume/wp-browser

A set of Codeception modules to test WordPress projects.

6343.8M153](/packages/lucatume-wp-browser)[codeception/lib-asserts

Assertion methods used by Codeception core and Asserts module

10458.1M14](/packages/codeception-lib-asserts)[codeception/module-asserts

Codeception module containing various assertions

8550.6M1.2k](/packages/codeception-module-asserts)[codeception/lib-innerbrowser

Parent library for all Codeception framework modules and PhpBrowser

8641.7M77](/packages/codeception-lib-innerbrowser)[codeception/module-symfony

Codeception module for Symfony framework

949.4M95](/packages/codeception-module-symfony)[codeception/module-webdriver

WebDriver module for Codeception

3831.4M245](/packages/codeception-module-webdriver)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
