Phalcon Demo Application

Overview

Phalcon Demo Application

Build Status

We use modified Phalcon INVO Application 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

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

Requirements

Installation

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 <folder name>

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

Another way to fetch project by using git clone:

First you need to clone this repository:

git clone [email protected]: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

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

Phalcon Demo Application uses Codeception 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:

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

Demonstrates testing of CRUD application with:

Contributing

See CONTRIBUTING.md

License

Phalcon Demo Application is open-sourced software licensed under the New BSD License.
© 2012 - 2020 Phalcon Framework Team and contributors
© 2015 - 2020 Codeception Team and contributors

Comments
  • quickstart demo

    quickstart demo

    @sergeyklay can you make phalcon quick starter here http://codeception.com/quickstart please.

    I haven't used codeception, i am just starting to know it, otherwise i would help

    Docs needed 
    opened by Izopi4a 3
  • How  to load class defined in my custom code ?

    How to load class defined in my custom code ?

    My application defined service in custom path, as below:

    https://github.com/kcloze/phalconMvc/blob/master/app/services/CountersService.php

    • I want to test service with codeception, have no idea. Can you give me a good advice? Thank you very much .
    opened by kcloze 2
  • Showing Usage Of Session Override (Codeception 2.5)

    Showing Usage Of Session Override (Codeception 2.5)

    Hello!

    • Type: new feature | documentation

    This pull request affects the following components: (please check boxes)

    • [x] Project Core
    • [ ] Code Style
    • [x] Documentation
    • [x] Testing

    In raising this pull request, I confirm the following (please check boxes):

    • [ ] I have read and understood the Contributing Guidelines?
    • [ ] I have checked that another pull request for this purpose does not exist.
    • [ ] I wrote some tests for this PR.

    Small description of change:

    Adding testing to demonstrate new feature for adding custom session object when running Codeception tests.

    Thanks

    opened by Fenikkusu 1
  • Upgrade Phalcon Demo to v4

    Upgrade Phalcon Demo to v4

    Hello!

    • Type: new feature | code quality | documentation
    • Link to issue:

    This pull request affects the following components: (please check boxes)

    • [x] Project Core
    • [x] Code Style
    • [x] Documentation
    • [x] Testing

    In raising this pull request, I confirm the following (please check boxes):

    • [x] I have read and understood the Contributing Guidelines?
    • [x] I have checked that another pull request for this purpose does not exist.
    • [x] I wrote some tests for this PR.

    Implements Phalcon 4 support

    opened by ruudboon 0
  • Example of Unit testing (Model)

    Example of Unit testing (Model)

    Hello!

    • Type: documentation
    • Link to issue: https://github.com/Codeception/Codeception/issues/3333

    This pull request affects the following components: (please check boxes)

    • [ ] Project Core
    • [ ] Code Style
    • [x] Documentation
    • [X] Testing

    In raising this pull request, I confirm the following (please check boxes):

    • [X] I have read and understood the Contributing Guidelines?
    • [X] I have checked that another pull request for this purpose does not exist.
    • [X] I wrote some tests for this PR.

    Small description of change: This is a small example test of Unit testing (Model)

    Thanks

    Testing 
    opened by sergeyklay 0
  • Minor env refactor and cleanup

    Minor env refactor and cleanup

    Hello!

    • Type: bug fix
    • Link to issue:

    This pull request affects the following components: (please check boxes)

    • [x] Project Core
    • [x] Code Style
    • [ ] Documentation
    • [ ] Testing

    In raising this pull request, I confirm the following (please check boxes):

    • [x] I have read and understood the Contributing Guidelines?
    • [x] I have checked that another pull request for this purpose does not exist.
    • [ ] I wrote some tests for this PR.

    Small description of change:

    Thanks

    opened by sergeyklay 0
  • Fixed README.md [ci skip]

    Fixed README.md [ci skip]

    Hello!

    • Type: documentation
    • Link to issue:

    This pull request affects the following components: (please check boxes)

    • [ ] Project Core
    • [ ] Code Style
    • [x] Documentation
    • [ ] Testing

    In raising this pull request, I confirm the following (please check boxes):

    • [x] I have read and understood the Contributing Guidelines?
    • [x] I have checked that another pull request for this purpose does not exist.
    • [ ] I wrote some tests for this PR.

    Small description of change:

    Thanks

    opened by sergeyklay 0
  • [NFR] Offer SQLite as the default database for the demo

    [NFR] Offer SQLite as the default database for the demo

    Just a suggestion,

    Use SQLite instead of MySQL as the backend for this demo. As this would lower the required dependencies and setup time for those who want to get a quick glance at the framework.

    Enhancement 
    opened by AnnoyingTechnology 5
Releases(v2.0.0)
Owner
Codeception Testing Framework
Codeception Testing Framework and related projects
Codeception Testing Framework
A Phalcon paginator adapter for Phalcon Collections

Phalcon Collection Paginator A Phalcon paginator adapter for Phalcon Collections Why create this? Being familiar with the various Pagination data adap

Angel S. Moreno 2 Oct 7, 2022
Implementation of an API application using the Phalcon Framework

phalcon-api Sample API using Phalcon Implementation of an API application using the Phalcon Framework https://phalcon.io Installation Clone the projec

The Phalcon PHP Framework 81 Dec 15, 2022
Invo - Sample application for the Phalcon PHP Framework

INVO Application Phalcon is a web framework delivered as a C extension providing high performance and lower resource consumption. This is a sample app

The Phalcon PHP Framework 344 Dec 14, 2022
Album-o-rama - Sample application for the Phalcon PHP Framework.

Album O'Rama Phalcon PHP is a web framework delivered as a C extension providing high performance and lower resource consumption. This is a sample app

The Phalcon PHP Framework 84 Oct 7, 2022
Vulnerable demo application for the race condition

Vulnerable PHP App (Race Condition) Environment setup: docker-compose up Environment verification: Connection Test: http://localhost/test.php Vulnera

ProjectDiscovery 7 Nov 29, 2022
This demo app shows you how to run a simple PHP application on AWS Elastic Beanstalk.

Elastic Beanstalk + PHP Demo App - "Share Your Thoughts" This demo app shows you how to run a simple PHP application on AWS Elastic Beanstalk. Run the

AWS Samples 143 Nov 26, 2022
Notejam demo application using Blink framework

Notejam: Blink framework Notejam demo application using Blink framework Installation Clone the repository to you machine. Run vagrant up to create the

RAFIE Younes 6 Jun 4, 2018
Simple Symfony currency exchange demo application (CLI)

Symfony currency exchange demo Keynotes Using a small Symfony installation as possible Using SQLite database for simplicity but with price of some cav

Vladimir Martsul 9 Oct 21, 2022
PHP demo application showing how to access the Hubstaff Public API

Public API PHP Demo This repository contains a simple sample cli tool that shows off how to access the Hubstaff public api via PHP. The core access is

Netsoft Holdings 5 Dec 6, 2022
Phalcon official Forum

Phosphorum 3 Phosphorum is an engine for building flexible, clear and fast forums. You can adapt it to your own needs or improve it if you want. Pleas

The Phalcon PHP Framework 361 Dec 27, 2022
Phalcon PHP Meta tags Service

About Phalcon meta tags plugin for PhalconPHP. This plugin allows you to easily and flexibly customize the meta tags of your view. If this plugin help

null 12 Oct 7, 2022
A composer package designed to help you create a JSON:API in Phalcon

phalcon-json-api-package A composer package designed to help you create a JSON:API in Phalcon What happens when a PHP developer wants to create an API

Jim 36 Oct 7, 2022
Setupify is a Phalcon provisioning and development tool.

Setupify Provisioning Tool WARNING: Setupify is currently in a state of experimentation. Use tag release. Setupify is a collection of bash scripts for

Perch Labs 3 Oct 7, 2022
RedisPlugin for Phalcon

RedisPlugin for Phalcon (The correspondence of MySQL sharding.) Composer { "require": { "ienaga/phalcon-redis-plugin": "3.*" } } Versio

Toshiyuki Ienaga 16 Oct 7, 2022
Easy Repository pattern for PHP Phalcon framework.

Phalcon Repositories Introduction Phalcon Repositories lets you easily build repositories for your Phalcon models, for both SQL and Mongo drivers. PHP

Michele Angioni 18 Oct 7, 2022
Phalcon devtools

Yarak yarak - (Falconry) a state of prime fitness in a falcon Laravel inspired Phalcon devtools Database migrations that rollback step-by-step, reset

Zach Leigh 27 Oct 7, 2022
Incubator adapters/functionality for the Phalcon PHP Framework

Phalcon Incubator This is a repository to publish/share/experiment with new adapters, prototypes or functionality that can potentially be incorporated

The Phalcon PHP Framework 735 Dec 27, 2022
PHP Profiler & Developer Toolbar (built for Phalcon)

Prophiler - A PHP Profiler & Developer Toolbar built for Phalcon Demo The demo website has been moved to a separate repository: https://github.com/fab

Fabian Fuelling 444 Dec 27, 2022
A powerful debug and profilers tool for the Phalcon Framework

Phalcon Debugbar Integrates PHP Debug Bar with Phalcon Framework. 中文说明 Features Normal request capturing Ajax request capturing Redirect request chain

Yajie Zhu 162 Oct 7, 2022