{"id":19617732,"url":"https://github.com/macagua/example-yii2-basic","last_synced_at":"2026-05-14T20:06:32.325Z","repository":{"id":137264110,"uuid":"45075548","full_name":"macagua/example-yii2-basic","owner":"macagua","description":"My first yii2 basic web app","archived":false,"fork":false,"pushed_at":"2015-10-28T01:18:03.000Z","size":184,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-23T02:51:35.681Z","etag":null,"topics":["php","yii2","yii2-basic"],"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/macagua.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-10-27T23:06:04.000Z","updated_at":"2020-09-21T09:48:36.000Z","dependencies_parsed_at":"2023-03-13T20:35:27.987Z","dependency_job_id":null,"html_url":"https://github.com/macagua/example-yii2-basic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/macagua/example-yii2-basic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macagua%2Fexample-yii2-basic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macagua%2Fexample-yii2-basic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macagua%2Fexample-yii2-basic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macagua%2Fexample-yii2-basic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/macagua","download_url":"https://codeload.github.com/macagua/example-yii2-basic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macagua%2Fexample-yii2-basic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33041255,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["php","yii2","yii2-basic"],"created_at":"2024-11-11T11:07:02.722Z","updated_at":"2026-05-14T20:06:32.294Z","avatar_url":"https://github.com/macagua.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Yii 2 Basic Project Template\n============================\n\nYii 2 Basic Project Template is a skeleton [Yii 2](http://www.yiiframework.com/) application best for\nrapidly creating small projects.\n\nThe template contains the basic features including user login/logout and a contact page.\nIt includes all commonly used configurations that would allow you to focus on adding new\nfeatures to your application.\n\n[![Latest Stable Version](https://poser.pugx.org/yiisoft/yii2-app-basic/v/stable.png)](https://packagist.org/packages/yiisoft/yii2-app-basic)\n[![Total Downloads](https://poser.pugx.org/yiisoft/yii2-app-basic/downloads.png)](https://packagist.org/packages/yiisoft/yii2-app-basic)\n[![Build Status](https://travis-ci.org/yiisoft/yii2-app-basic.svg?branch=master)](https://travis-ci.org/yiisoft/yii2-app-basic)\n\nDIRECTORY STRUCTURE\n-------------------\n\n      assets/             contains assets definition\n      commands/           contains console commands (controllers)\n      config/             contains application configurations\n      controllers/        contains Web controller classes\n      mail/               contains view files for e-mails\n      models/             contains model classes\n      runtime/            contains files generated during runtime\n      tests/              contains various tests for the basic application\n      vendor/             contains dependent 3rd-party packages\n      views/              contains view files for the Web application\n      web/                contains the entry script and Web resources\n\n\n\nREQUIREMENTS\n------------\n\nThe minimum requirement by this project template that your Web server supports PHP 5.4.0.\n\n\nINSTALLATION\n------------\n\n### Install from an Archive File\n\nExtract the archive file downloaded from [yiiframework.com](http://www.yiiframework.com/download/) to\na directory named `basic` that is directly under the Web root.\n\nSet cookie validation key in `config/web.php` file to some random secret string:\n\n```php\n'request' =\u003e [\n    // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation\n    'cookieValidationKey' =\u003e '\u003csecret random string goes here\u003e',\n],\n```\n\nYou can then access the application through the following URL:\n\n~~~\nhttp://localhost/basic/web/\n~~~\n\n\n### Install via Composer\n\nIf you do not have [Composer](http://getcomposer.org/), you may install it by following the instructions\nat [getcomposer.org](http://getcomposer.org/doc/00-intro.md#installation-nix).\n\nYou can then install this project template using the following command:\n\n~~~\nphp composer.phar global require \"fxp/composer-asset-plugin:~1.0.0\"\nphp composer.phar create-project --prefer-dist --stability=dev yiisoft/yii2-app-basic basic\n~~~\n\nNow you should be able to access the application through the following URL, assuming `basic` is the directory\ndirectly under the Web root.\n\n~~~\nhttp://localhost/basic/web/\n~~~\n\n\nCONFIGURATION\n-------------\n\n### Database\n\nEdit the file `config/db.php` with real data, for example:\n\n```php\nreturn [\n    'class' =\u003e 'yii\\db\\Connection',\n    'dsn' =\u003e 'mysql:host=localhost;dbname=yii2basic',\n    'username' =\u003e 'root',\n    'password' =\u003e '1234',\n    'charset' =\u003e 'utf8',\n];\n```\n\n**NOTE:** Yii won't create the database for you, this has to be done manually before you can access it.\n\nAlso check and edit the other files in the `config/` directory to customize your application.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacagua%2Fexample-yii2-basic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmacagua%2Fexample-yii2-basic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacagua%2Fexample-yii2-basic/lists"}