{"id":17999652,"url":"https://github.com/skoro/yii2-admin-template","last_synced_at":"2025-03-26T06:31:44.086Z","repository":{"id":57052640,"uuid":"53891264","full_name":"skoro/yii2-admin-template","owner":"skoro","description":"Yii2 application template targeted for backends.","archived":false,"fork":false,"pushed_at":"2018-02-01T12:04:10.000Z","size":546,"stargazers_count":18,"open_issues_count":3,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-29T23:35:02.195Z","etag":null,"topics":["admin","adminlte","backend","yii2"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skoro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-14T20:56:09.000Z","updated_at":"2023-12-30T13:41:07.000Z","dependencies_parsed_at":"2022-08-24T04:11:28.619Z","dependency_job_id":null,"html_url":"https://github.com/skoro/yii2-admin-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/skoro%2Fyii2-admin-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skoro%2Fyii2-admin-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skoro%2Fyii2-admin-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skoro%2Fyii2-admin-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skoro","download_url":"https://codeload.github.com/skoro/yii2-admin-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245603842,"owners_count":20642894,"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":["admin","adminlte","backend","yii2"],"created_at":"2024-10-29T22:14:03.307Z","updated_at":"2025-03-26T06:31:42.733Z","avatar_url":"https://github.com/skoro.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Yii 2 Admin Project Template\n============================\n\nYii 2 Admin Project Template is a skeleton [Yii 2](http://www.yiiframework.com/) application best for rapidly creating admin backends projects.\n\nFeatures:\n* Application files in its folder.\n* [AdminLTE](https://github.com/almasaeed2010/AdminLTE) theme imported\n* User schema and user login/register/profile/passwords forms.\n* AdminLTE specific widgets exposed as Yii2 widgets:\n  * Box (with expanded/collapsed state)\n  * Tabs\n  * Select2\n  * GridView\n  * ProgressBar (vertical/horizontal)\n  * Popup notifications.\n  * ItemList (wrapper for nice AdminLTE lists)\n  * TimePicker\n  * Timeline\n  * TypeAhead (bootstrap version from @bower/typeahead.js)\n   \n[Screenshot](screenshot.png)\n\nDIRECTORY STRUCTURE\n-------------------\n\n    bin/   contains command line utilities\n    app/   contains your application \n          assets/         contains assets definition\n          base/           contains base classes\n          commands/       contains console commands (controllers)\n          components/     contains various components (Menu, etc)\n          config/         contains application configurations\n          controllers/    contains Web controller classes\n          forms/          contains web forms\n          helpers/        contains application helpers\n          mail/           contains view files for e-mails\n          models/         contains model classes\n          tests/          contains various tests for the basic application\n          views/          contains view files for the Web application\n          widgets/        contains widgets ready to use in views\n    modules/     contains custom modules\n    vendor/      contains dependent 3rd-party packages\n    runtime/     contains files generated during runtime\n    web/         contains the entry script and Web resources\n    config.php   local site application configuration\n\nREQUIREMENTS\n------------\n\nThe minimum requirement by this project template that your Web server supports PHP 5.4.0.\n\nINSTALLATION\n------------\n\nInstall composer if you have not any:\n~~~\ncurl -sS https://getcomposer.org/installer | php\nphp composer.phar global require \"fxp/composer-asset-plugin\"\n~~~\n\nGet the project and all dependencies:\n~~~\nphp composer.phar create-project skoro/yii2-admin-template yii2-admin 0.2\n~~~\n\nAnswer the questions and if you need apply database migrations. And that's all.\nIn case if you cannot install project via composer read next chapters.\n\nMANUAL INSTALLATION\n-------------------\n\nClone project repository:\n```\ngit clone https://github.com/skoro/yii2-admin-template.git yii2-admin\n```\n\nInstall dependencies:\n~~~\ncomposer.phar install\n~~~\n\nCheck project requirements:\n~~~\n./bin/requirements\n~~~\n\nChange to project directory and set permissions:\n~~~\nchmod 777 ./runtime ./web/assets\n~~~\n\nCreate your host configuration by copying sample:\n~~~\ncp config-sample.php config.php\n~~~\n\nSet cookie validation key in `config.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 '',\n],\n```\n\nCONFIGURATION\n-------------\n\nYour local site configuration resides in `config.php`. You can create `config.php`\nby copying `config-sample.php`.\n\n### Database\n\nEdit the file `config.php` in web root folder with real data, for example:\n```php\n'db' =\u003e [\n    'class' =\u003e 'yii\\db\\Connection',\n    'dsn' =\u003e 'mysql:host=localhost;dbname=yii2basic',\n    // Or SQLite3 database (directory data must be already created and must be\n    // writable by webserver).\n    // 'dsn' =\u003e 'sqlite:@runtime/data/db.sq3',\n    'username' =\u003e 'root',\n    'password' =\u003e '1234',\n    'charset' =\u003e 'utf8',\n];\n```\n\nApply database migrations:\n```\n./bin/yii migrate\n```\nThis imports user schema into your database.\n\n### Enable debug mode\n\nTo enabled debug bar uncomment following lines in `config.php`:\n```php\ndefine('YII_DEBUG', true);\ndefine('YII_ENV', 'dev');\n```\n\nIf you are on local network (not 127.0.0.1) make debug modules happy with\nfollowing lines:\n```php\n    'modules' =\u003e [\n        'debug' =\u003e [\n            'allowedIPs' =\u003e ['192.168.1.*'],\n        ],\n        'gii' =\u003e [\n            'allowedIPs' =\u003e ['192.168.1.*'],\n        ],\n    ],\n```\nThese lines enable `debug` and `gii` modules for clients from `192.168.1.*`\nsubnetwork.\n\nTESTING\n-------\n\nAfter application has been installed and configured it's time to test it.\nFirst of all, create user via command `yii` line utility:\n```\n./bin/yii user/create \"User name\" mail@address.com\n```\n\nAssign the newly created user to the Administrators group:\n```\n./bin/yii rbac/assign mail@address Administrator\n```\n\nThen launch local web server:\n```\n./bin/yii serve\n```\n\nNow you can access the application through the following URL and try to login:\n```\nhttp://localhost:8080\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskoro%2Fyii2-admin-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskoro%2Fyii2-admin-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskoro%2Fyii2-admin-template/lists"}