{"id":14966616,"url":"https://github.com/samdark/yii2-minimal","last_synced_at":"2025-04-06T16:15:39.650Z","repository":{"id":13751701,"uuid":"16446230","full_name":"samdark/yii2-minimal","owner":"samdark","description":"Yii 2 minimal application template","archived":false,"fork":false,"pushed_at":"2021-11-19T21:35:28.000Z","size":38,"stargazers_count":138,"open_issues_count":0,"forks_count":33,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-30T15:09:38.031Z","etag":null,"topics":["minimal","project-template","yii2"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"zelakant/front-test1","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":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"samdark","patreon":"samdark"}},"created_at":"2014-02-02T00:54:00.000Z","updated_at":"2025-01-09T14:07:28.000Z","dependencies_parsed_at":"2022-09-15T17:40:36.922Z","dependency_job_id":null,"html_url":"https://github.com/samdark/yii2-minimal","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdark%2Fyii2-minimal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdark%2Fyii2-minimal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdark%2Fyii2-minimal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdark%2Fyii2-minimal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samdark","download_url":"https://codeload.github.com/samdark/yii2-minimal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247509238,"owners_count":20950232,"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":["minimal","project-template","yii2"],"created_at":"2024-09-24T13:36:41.947Z","updated_at":"2025-04-06T16:15:39.632Z","avatar_url":"https://github.com/samdark.png","language":"PHP","funding_links":["https://github.com/sponsors/samdark","https://patreon.com/samdark"],"categories":["Tutorials","Project structure examples"],"sub_categories":["Project structure examples"],"readme":"Yii 2 Minimal Application Template\n================================\n\nYii 2 Minimal Application Template is a skeleton Yii 2 application best for\nstarting totally from scratch.\n\nThe template contains the basic features including user login/logout.\nIt includes all commonly used configurations that would allow you to focus on adding new\nfeatures to your application.\n\n\nDIRECTORY STRUCTURE\n-------------------\n\n      commands/           contains console commands (controllers)\n      config/             contains application configurations\n      controllers/        contains Web controller classes\n      models/             contains model classes\n      runtime/            contains files generated during runtime\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 application template that your Web server supports PHP 5.4.0.\n\n\nINSTALLATION\n------------\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 application template using the following command:\n\n~~~\ncomposer create-project --prefer-dist --stability=dev samdark/yii2-minimal path/to/your/project\n~~~\n\nNow you should be able to access the application through the following URL, assuming your server webroot is pointed to\n`project/web` directory.\n\n~~~\nhttp://localhost/\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=yii2minimal',\n    'username' =\u003e 'root',\n    'password' =\u003e '1234',\n    'charset' =\u003e 'utf8',\n];\n```\n\n**NOTES:**\n- Yii won't create the database for you, this has to be done manually before you can access it.\n- Check and edit the other files in the `config/` directory to customize your application as required.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamdark%2Fyii2-minimal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamdark%2Fyii2-minimal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamdark%2Fyii2-minimal/lists"}