{"id":20523106,"url":"https://github.com/itstructure/yii2-template-simple","last_synced_at":"2026-04-20T11:02:10.088Z","repository":{"id":37508882,"uuid":"195416200","full_name":"itstructure/yii2-template-simple","owner":"itstructure","description":null,"archived":false,"fork":false,"pushed_at":"2025-10-20T11:35:43.000Z","size":4647,"stargazers_count":0,"open_issues_count":3,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-20T13:26:27.670Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itstructure.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-05T13:43:26.000Z","updated_at":"2025-10-20T11:35:47.000Z","dependencies_parsed_at":"2025-01-16T10:44:38.724Z","dependency_job_id":"c6bd9e3d-299d-4630-8d97-fe49526a186e","html_url":"https://github.com/itstructure/yii2-template-simple","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/itstructure/yii2-template-simple","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itstructure%2Fyii2-template-simple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itstructure%2Fyii2-template-simple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itstructure%2Fyii2-template-simple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itstructure%2Fyii2-template-simple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itstructure","download_url":"https://codeload.github.com/itstructure/yii2-template-simple/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itstructure%2Fyii2-template-simple/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32044291,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T10:33:29.490Z","status":"ssl_error","status_checked_at":"2026-04-20T10:32:30.107Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-15T22:38:01.333Z","updated_at":"2026-04-20T11:02:10.078Z","avatar_url":"https://github.com/itstructure.png","language":"PHP","readme":"Yii2 simple template install documentation\n==============\n\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/itstructure/yii2-template-simple/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/itstructure/yii2-template-simple/?branch=master)\n[![Build Status](https://scrutinizer-ci.com/g/itstructure/yii2-template-simple/badges/build.png?b=master)](https://scrutinizer-ci.com/g/itstructure/yii2-template-simple/build-status/master)\n\n1 Introduction\n----------------------------\n\nYii2 simple project template, based on [Yii2 basic framework](https://github.com/yiisoft/yii2-app-basic) v2.0.x.\nProject is available to install at [Git Hub repository](https://github.com/itstructure/yii2-template-simple).\n\nThis template includes:\n\n- Admin panel, based on [AdminLTE](https://github.com/almasaeed2010/AdminLTE) v2.4\n\n- Number of entities, which are managed by admin panel:\n    - Site settings (Initial role and status after registration, e.t.c.)\n    - Users\n    - RBAC (Set roles and permissions for users)\n    - Positions\n    - Pages\n        - Articles (child articles for pages)\n    - Categories\n        - Products (child products for categories)\n    - Feedback\n    - About (about company page)\n        - Technologies (child)\n        - Qualities (child)\n    - Contacts\n        - Social (child)\n    - Home page\n    - Site map\n    \nThis template helps you to easy start your Yii2 project. And then you can change it as you like.\n\n2 Requirements\n----------------------------\n\n- php \u003e= 7.4\n- composer 2\n- MySql \u003e= 5.5 or MariaDB \u003e= 10.1\n\n3 Installation\n----------------------------\n\n1. Clone project.\n\n    `SSH SOURCE: git@github.com:itstructure/yii2-template-simple.git`\n    \n    `HTTPS SOURCE: https://github.com/itstructure/yii2-template-simple.git`\n    \n2. Install dependencies by running from the project root `composer install`\n\n3. Copy file `config/base-url_example.php` to `config/base-url.php`. In file `config/base-url.php` set a project host:\n\n    ```php\n    return 'http://example-host.com';\n    ```\n\n4. You can set the environment options. For that, copy file `config/environment_example.php` to `config/environment.php`. In file `config/environment.php` set the next:\n\n    ```php\n    define('YII_DEBUG', true);\n    define('YII_ENV', 'dev');\n    ```\n    \n    or\n    \n    ```php\n    define('YII_DEBUG', false);\n    define('YII_ENV', 'test');\n    ```\n\n    If to not set this options, then by default: `YII_DEBUG` is **false**, `YII_ENV` is **prod**.\n\n5. Create new data base.\n\n6. Copy file `config/db_example.php` to `config/db.php`. In file `config/db.php` set settings according with the access to MySql server.\n\n    Example:\n    \n    ```php\n    return [\n        'class' =\u003e 'yii\\db\\Connection',\n        'dsn' =\u003e 'mysql:host=localhost;dbname=yourdbname',\n        'username' =\u003e 'root',\n        'password' =\u003e 'passwordvalue',\n        'charset' =\u003e 'utf8',\n    ];\n    ```\n\n7. Run the RBAC migration:\n\n    `yii migrate --migrationPath=@yii/rbac/migrations`\n    \n8. Run the command to build initial rbac entities:\n\n    `yii build-rbac`\n    \n    Roles and permissions will be created with the following structure:\n    \n        |--------------------|-----------------------------|\n        |                    |            Roles            |\n        |                    |-----------------------------|\n        | Permissions        |  admin  | manager |  user   |\n        |--------------------|---------|---------|---------|\n        | CREATE             |    X    |         |         |\n        | UPDATE             |    X    |         |         |\n        | DELETE             |    X    |         |         |\n        | SET_ROLES          |    X    |         |         |\n        | VIEW_BACKSIDE      |    X    |    X    |         |\n        | VIEW_FRONTSIDE     |    X    |    X    |    X    |\n        |--------------------|---------|---------|---------|\n    \n9. Run MFU module migration:\n\n    `yii migrate --migrationPath=@mfuploader/migrations`\n    \n10. Run the application migration:\n\n    `yii migrate`\n    \n11. If you are going to use google captcha, copy file `config/captcha_example.php` to `config/captcha.php`. In file `config/captcha.php` it is necessary to set captcha params:\n\n    ```php\n    return [\n        'site_key' =\u003e 'your-google-site-key',\n        'secret_key' =\u003e 'your-google-secret-key',\n    ];\n    ```\n    \n    And uncomment `captcha` option in `config/params.php` config file.\n    \n12. If you are going to load some files to Amazon S3 remote storage by [MFUploader module](https://github.com/itstructure/yii2-multi-format-uploader), it is necessary to set AWS access params in new `config/aws-credentials.php` config file.\n\n    Copy file `config/aws-credentials_example.php` to `config/aws-credentials.php` and set:\n    \n    ```php\n    return [\n        'key' =\u003e 'your-aws-s3-key',\n        'secret' =\u003e 'your-aws-s3-secret',\n    ];\n    ```\n    \n    And uncomment `s3-upload-component` option of the `mfuploader` module option in `config/admin/admin.php` config file.\n    \n    Comment or delete `local-upload-component` option.\n    \n    Then set `'defaultStorageType' =\u003e MFUModule::STORAGE_TYPE_S3`\n    ","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitstructure%2Fyii2-template-simple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitstructure%2Fyii2-template-simple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitstructure%2Fyii2-template-simple/lists"}