{"id":13410864,"url":"https://github.com/samdark/yii2-shop","last_synced_at":"2025-04-05T02:10:38.260Z","repository":{"id":28355326,"uuid":"31869102","full_name":"samdark/yii2-shop","owner":"samdark","description":"Example project implementing simple shop using Yii 2.0","archived":false,"fork":false,"pushed_at":"2021-03-02T22:15:42.000Z","size":97,"stargazers_count":461,"open_issues_count":2,"forks_count":237,"subscribers_count":90,"default_branch":"master","last_synced_at":"2025-03-29T01:11:23.560Z","etag":null,"topics":["example","shop","yii"],"latest_commit_sha":null,"homepage":"","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/samdark.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-08T22:53:44.000Z","updated_at":"2025-03-25T21:28:46.000Z","dependencies_parsed_at":"2022-08-25T10:10:49.014Z","dependency_job_id":null,"html_url":"https://github.com/samdark/yii2-shop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdark%2Fyii2-shop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdark%2Fyii2-shop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdark%2Fyii2-shop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdark%2Fyii2-shop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samdark","download_url":"https://codeload.github.com/samdark/yii2-shop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276189,"owners_count":20912288,"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":["example","shop","yii"],"created_at":"2024-07-30T20:01:09.854Z","updated_at":"2025-04-05T02:10:38.241Z","avatar_url":"https://github.com/samdark.png","language":"PHP","funding_links":[],"categories":["基于 Yii2 的开源程序"],"sub_categories":[],"readme":"Yii 2 shop example project\n==========================\n\nThis is an example project implementing a shop created to help people learn Yii 2.0. It was created during 8 hours workshop performed in Ekaterinburg, Russia. The idea was to show how to deal with Gii, grids, filtering and other Yii 2.0 usage. It is by no means a complete shop script. It may contain bugs, shortcuts etc.\n\n\u003e If you want to take over the project and develop it further, let @samdark know and you'll be granted permissions required.\n\nThere are slides from the workshop in Russian: http://slides.rmcreative.ru/2014/yii2-master/\n\nIt is built on top of advanced template which includes three tiers: front end, back end, and console, each of which\nis a separate Yii application.\n\nDIRECTORY STRUCTURE\n-------------------\n\n```\ncommon\n    config/              contains shared configurations\n    mail/                contains view files for e-mails\n    models/              contains model classes used in both backend and frontend\nconsole\n    config/              contains console configurations\n    controllers/         contains console controllers (commands)\n    migrations/          contains database migrations\n    models/              contains console-specific model classes\n    runtime/             contains files generated during runtime\nbackend\n    assets/              contains application assets such as JavaScript and CSS\n    config/              contains backend configurations\n    controllers/         contains Web controller classes\n    models/              contains backend-specific model classes\n    runtime/             contains files generated during runtime\n    views/               contains view files for the Web application\n    web/                 contains the entry script and Web resources\nfrontend\n    assets/              contains application assets such as JavaScript and CSS\n    config/              contains frontend configurations\n    controllers/         contains Web controller classes\n    models/              contains frontend-specific model classes\n    runtime/             contains files generated during runtime\n    views/               contains view files for the Web application\n    web/                 contains the entry script and Web resources\n    widgets/             contains frontend widgets\nvendor/                  contains dependent 3rd-party packages\nenvironments/            contains environment-based overrides\ntests                    contains various tests for the advanced application\n    codeception/         contains tests developed with Codeception PHP Testing Framework\n```\n\n\nREQUIREMENTS\n------------\n\nThe minimum requirement by this application template that your Web server supports PHP 5.4.0.\n\n\nINSTALLATION\n------------\n\n### Install via Composer\n\nIf you do not have [Composer](http://getcomposer.org/), you can install it by following the instructions\nat [getcomposer.org](http://getcomposer.org/doc/00-intro.md#installation-nix).\n\nYou can then install the application using the following command:\n\n~~~\ngit clone https://github.com/samdark/yii2-shop.git\ncomposer self-update\ncomposer global require \"fxp/composer-asset-plugin:~1.1.1\"\ncd yii2-shop\ncomposer install\n~~~\n\n\nGETTING STARTED\n---------------\n\nAfter you install the application, you have to conduct the following steps to initialize\nthe installed application. You only need to do these once for all.\n\n1. Run command `init` to initialize the application with a specific environment.\n2. Create a new database and adjust the `components['db']` configuration in `common/config/main-local.php` accordingly.\n3. Apply migrations with console command `yii migrate`. This will create tables needed for the application to work.\n4. Set document roots of your Web server:\n\n- for frontend `/path/to/yii2shop/frontend/web/` and using the URL `http://shop.local/`\n- for backend `/path/to/yii2shop/backend/web/` and using the URL `http://admin.shop.local/`\n\nTo login into the application, you need to first sign up, with any of your email address, username and password.\nThen, you can login into the application with same email address and password at any time.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamdark%2Fyii2-shop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamdark%2Fyii2-shop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamdark%2Fyii2-shop/lists"}