{"id":13806193,"url":"https://github.com/Codeception/phalcon-demo","last_synced_at":"2025-05-13T21:32:38.839Z","repository":{"id":43251747,"uuid":"44760239","full_name":"Codeception/phalcon-demo","owner":"Codeception","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-11T23:22:56.000Z","size":122,"stargazers_count":43,"open_issues_count":1,"forks_count":15,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-04-14T02:40:03.872Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Codeception.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-22T17:02:29.000Z","updated_at":"2024-02-15T22:08:27.000Z","dependencies_parsed_at":"2022-09-02T23:50:25.934Z","dependency_job_id":null,"html_url":"https://github.com/Codeception/phalcon-demo","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeception%2Fphalcon-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeception%2Fphalcon-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeception%2Fphalcon-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeception%2Fphalcon-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Codeception","download_url":"https://codeload.github.com/Codeception/phalcon-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":205619986,"owners_count":14454442,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T01:01:08.700Z","updated_at":"2024-08-04T01:05:50.925Z","avatar_url":"https://github.com/Codeception.png","language":"PHP","funding_links":[],"categories":["Testing"],"sub_categories":[],"readme":"# Phalcon Demo Application \n\n[![Build Status](https://travis-ci.org/Codeception/phalcon-demo.svg?branch=master)][phalcon-demo]\n\nWe use **modified** [Phalcon INVO Application][1] to demonstrate basics of Codeception testing.\nWe expect to implement as many features as possible to showcase the framework and its\npotential.\n\nPlease write us if you have any feedback.\n\nThanks.\n\n## NOTE\n\nThe master branch will always contain the latest stable version. If you wish\nto check older versions or newer ones currently under development, please\nswitch to the relevant branch.\n\n## Get Started\n\n### Requirements\n\n* PHP \u003e= 7.2\n* Latest stable [Phalcon Framework v4][4] extension enabled\n* [MySQL][5] \u003e= 5.1.5\n* Codeception \u003e= 4.0\n\n### Installation\n\n#### The Composer way (recommended)\n\nUsing Composer, you can create a new project, write this code on your terminal:\n\n```sh\ncomposer create-project codeception/phalcon-demo --prefer-dist \u003cfolder name\u003e\n```\n\nAfter running this command, there should be an output, similar below:\n\n```\nInstalling codeception/phalcon-demo (version)\n  - Installing codeception/phalcon-demo (version)\n\nCreated project in \u003cfolder name\u003e\nLoading composer repositories with package information\nUpdating dependencies (including require-dev)\n\n...\n...\n...\n\nWriting lock file\nGenerating autoload files\nDo you want to remove the existing VCS (.git, .svn..) history? [Y,n]? y\n```\n\n#### The Git way\n\nAnother way to fetch project by using `git clone`:\n\nFirst you need to clone this repository:\n\n```sh\ngit clone git@github.com:Codeception/phalcon-demo.git\n```\n\nInstall composer in a common location or in your project:\n\n```sh\ncurl -s http://getcomposer.org/installer | php\n```\n\nThen install dependencies:\n\n```sh\nphp composer.phar install\n```\n\n#### Setup Database\n\nA MySQL database is also bundled in this project. The connection to the database is required for several tests.\nYou'll need to create the database and initialize schema.\n\nYou can create a database as follows:\n\n```sh\necho 'CREATE DATABASE phalcon_demo CHARSET=utf8 COLLATE=utf8_unicode_ci' | mysql -u root\n```\n\nthen initialize schema:\n\n```\ncat schemas/phalcon_demo.sql | mysql -u root phalcon_demo\n```\n\n**Note:**\n\nFor these tests we use the user `root` with `password` as password. You may need to change this in `tests/codeception.yml`.\nYou can override application config by creating `app/config/config.ini.dev` (already gitignored).\n\n## Tests\n\nPhalcon Demo Application uses [Codeception][6] functional, acceptance and unit tests.\n\nFirst you need to re-generate base classes for all suites:\n\n```sh\nvendor/bin/codecept build\n```\n\nYou can execute all test with `run` command:\n\n```sh\nvendor/bin/codecept run\n\n# OR detailed output\nvendor/bin/codecept run --debug\n```\n\nRead more about the installation and configuration of Codeception:\n\n* [Codeception Introduction][7]\n* [Codeception Console Commands][8]\n\nIf you cannot run the tests, please refer to the `.travis.yml` file for more instructions how we test Phalcon Demo Application.\nFor detailed information on our application environment setting refer to `app/config/env.php` file.\n\n### Functional Tests\n\nDemonstrates testing of CRUD application with:\n\n* [UserSteps][9]\n\n## Contributing\n\nSee [CONTRIBUTING.md][15]\n\n## License\n\nPhalcon Demo Application is open-sourced software licensed under the [New BSD License][16].\u003cbr\u003e\n© 2012 - 2020 Phalcon Framework Team and contributors\u003cbr\u003e\n© 2015 - 2020 Codeception Team and contributors\n\n[phalcon-demo]: https://travis-ci.org/Codeception/phalcon-demo\n[1]: https://github.com/phalcon/invo/\n[2]: https://nginx.org/\n[3]: https://php.net/manual/en/install.fpm.php\n[4]: https://github.com/phalcon/cphalcon/releases\n[5]: https://www.mysql.com/\n[6]: https://codeception.com/\n[7]: https://codeception.com/docs/01-Introduction\n[8]: https://codeception.com/docs/reference/Commands\n[9]: https://github.com/Codeception/phalcon-demo/blob/master/tests/_support/User/Functional/UserSteps.php\n[15]: https://github.com/Codeception/phalcon-demo/blob/master/CONTRIBUTING.md\n[16]: https://github.com/Codeception/phalcon-demo/blob/master/LICENSE.txt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCodeception%2Fphalcon-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCodeception%2Fphalcon-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCodeception%2Fphalcon-demo/lists"}