{"id":15169502,"url":"https://github.com/yii2tech/project-template","last_synced_at":"2025-10-01T02:31:19.487Z","repository":{"id":57087035,"uuid":"52442030","full_name":"yii2tech/project-template","owner":"yii2tech","description":"Yii2 Project Template","archived":true,"fork":false,"pushed_at":"2018-03-03T00:44:13.000Z","size":164,"stargazers_count":55,"open_issues_count":0,"forks_count":9,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-09-22T22:01:58.740Z","etag":null,"topics":["project-template","yii","yii2"],"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/yii2tech.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":"2016-02-24T12:52:34.000Z","updated_at":"2023-10-08T00:01:50.000Z","dependencies_parsed_at":"2022-08-25T00:50:32.328Z","dependency_job_id":null,"html_url":"https://github.com/yii2tech/project-template","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yii2tech%2Fproject-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yii2tech%2Fproject-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yii2tech%2Fproject-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yii2tech%2Fproject-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yii2tech","download_url":"https://codeload.github.com/yii2tech/project-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219875269,"owners_count":16554661,"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":["project-template","yii","yii2"],"created_at":"2024-09-27T07:02:38.674Z","updated_at":"2025-10-01T02:31:19.175Z","avatar_url":"https://github.com/yii2tech.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/yii2tech\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://avatars2.githubusercontent.com/u/12951949\" height=\"100px\"\u003e\n    \u003c/a\u003e\n    \u003ch1 align=\"center\"\u003eYii 2 Project Template\u003c/h1\u003e\n    \u003cbr\u003e\n\u003c/p\u003e\n\nThis project is a skeleton [Yii 2](http://www.yiiframework.com/) application best for\ndeveloping complex Web applications with multiple tiers.\n\nThe template includes three tiers: front end, back end, and console, each of which\nis a separate Yii application.\n\nThe template is designed to work in a team development environment.\n\n[![Latest Stable Version](https://poser.pugx.org/yii2tech/project-template/v/stable.png)](https://packagist.org/packages/yii2tech/project-template)\n[![Total Downloads](https://poser.pugx.org/yii2tech/project-template/downloads.png)](https://packagist.org/packages/yii2tech/project-template)\n[![Build Status](https://travis-ci.org/yii2tech/project-template.svg?branch=master)](https://travis-ci.org/yii2tech/project-template)\n\n\nREQUIREMENTS\n------------\n\nRequirements check script:\n\n```\nphp requirements.php\n```\n\n\nINSTALLATION\n------------\n\n1. Clone the repository into the project destination directory.\n2. Switch the project branch to the needed one: 'master', 'stage', 'live' etc.\n3. Run the installation script using following command:\n\n```\nphp install.php init/all\n```\n\nProject should be deployed beyond web accessible folder. Actual web root should be created as symlink to the 'web' folder:\n\n```bash\nln -s /path/to/project/web /var/www/html/project\n```\n\n\nASSET COMPRESSION\n-----------------\n\nFor assets (CSS and JavaScript) compression use following command:\n\n```\ncd /path/to/project/root\nphp yii asset config/frontend-asset-compress.php config/frontend-assets.php\n```\n\nSee `config/frontend-asset-compress.php` file for more details.\n\nThe 'backend' assets compression is performed as separated command:\n\n```\ncd /path/to/project/root\nphp yii asset config/backend-asset-compress.php config/backend-assets.php\n```\n\nSee `config/backend-asset-compress.php` file for more details.\n\n\nSITEMAP GENERATION\n------------------\n\nSitemap is generated by `app\\controllers\\console\\SitemapController::actionGenerate()` method.\nMake sure all pages, which should appear at sitemap are processed in this method.\nFor sitemap generation use following command:\n\n```\ncd /path/to/project/root\nphp yii sitemap/generate\n```\n\n\nSELF-UPDATE\n-----------\n\nAfter successful installation 'stage' or 'production' server can be updated using 'self-update' command.\n\nIn order to perform an update, run the following commands:\n\n```\ncd /path/to/project/root\nphp yii self-update config/self-update.php\n```\n\n\nGII\n---\n\nAdmin section generation:\n\n```\nphp yii gii/adminCrud --modelClass=\"app\\models\\db\\{NAME}\" --controllerClass=\"app\\controllers\\backend\\{NAME}Controller\" --searchModelClass=\"app\\models\\backend\\{NAME}Search\" --viewPath=\"@app/views/backend/{NAME}\" --enableI18N=1\n```\n\nAdmin section with context generation:\n\n```\nphp yii gii/adminCrud --modelClass=\"app\\models\\db\\{NAME}\" --controllerClass=\"app\\controllers\\backend\\{NAME}Controller\" --searchModelClass=\"app\\models\\backend\\{NAME}Search\" --viewPath=\"@app/views/backend/{NAME}\" --contextClass=\"app\\models\\db\\{CONTEXT}\" --enableI18N=1\n```\n\n\nI18N\n----\n\nTranslation messages generation:\n\n```\nphp yii message messages/config.php\n```\n\n\nTESTING\n-------\n\nThis project supports testing via [PHPUnit](https://phpunit.de/) as well as via [Codeception](http://codeception.com)\n\nRegular PHPUnit tests are located under 'tests\\unit' directory. In case you have PHPUnit installed you can run them\nusing `phpunit` command from the project root.\n\nPlease refer to [Codeception Testing](tests/codeception/README.md) manual for the details about Codeception tests setup and running.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyii2tech%2Fproject-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyii2tech%2Fproject-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyii2tech%2Fproject-template/lists"}