{"id":15041915,"url":"https://github.com/akiraz2/yii2-app","last_synced_at":"2025-04-10T00:32:14.752Z","repository":{"id":56943328,"uuid":"130590664","full_name":"akiraz2/yii2-app","owner":"akiraz2","description":"All you need for Rapid Development is My Advanced Template (Docker, DB||Redis Cache, Gentelella Admin, Dektrium-User, log-db, queue-db, i18n, EmailForm, postcss, Gii Ant) ~~~FREE WITH GREAT SUPPORT!~~~","archived":false,"fork":false,"pushed_at":"2021-01-22T10:49:27.000Z","size":118,"stargazers_count":49,"open_issues_count":1,"forks_count":17,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-24T02:13:08.373Z","etag":null,"topics":["dektrium","gentelella-theme","gii","i18n","logging","postcss","pretty-url","ready-to-use","yii2-application-template","yii2-queue","yii2-user"],"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/akiraz2.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":"2018-04-22T17:27:46.000Z","updated_at":"2024-11-17T01:09:47.000Z","dependencies_parsed_at":"2022-08-21T02:40:17.250Z","dependency_job_id":null,"html_url":"https://github.com/akiraz2/yii2-app","commit_stats":null,"previous_names":[],"tags_count":17,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akiraz2%2Fyii2-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akiraz2%2Fyii2-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akiraz2%2Fyii2-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akiraz2%2Fyii2-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akiraz2","download_url":"https://codeload.github.com/akiraz2/yii2-app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248135058,"owners_count":21053602,"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":["dektrium","gentelella-theme","gii","i18n","logging","postcss","pretty-url","ready-to-use","yii2-application-template","yii2-queue","yii2-user"],"created_at":"2024-09-24T20:46:38.057Z","updated_at":"2025-04-10T00:32:14.729Z","avatar_url":"https://github.com/akiraz2.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yii2 Fast Simple Advanced App [![Packagist Version](https://img.shields.io/packagist/v/akiraz2/yii2-app.svg?style=flat-square)](https://packagist.org/packages/akiraz2/yii2-app) [![Total Downloads](https://img.shields.io/packagist/dt/akiraz2/yii2-app.svg?style=flat-square)](https://packagist.org/packages/akiraz2/yii2-app)\n\nYii2-app is Fast and Ready-to-production advanced project template.\n\nDockerized, for development (mysql, nginx, php-fpm)\n\nPlease, [enable php intl extension](http://php.net/manual/en/intl.installation.php) for better work.\n\nDefault, the template includes three tiers: `frontend`, `backend`, and `console`, each of which is a separate Yii application.\n\n\u003e **NOTE:** Template is in initial development. Anything may change at any time.\n\n\n## Features\n* Gentelella Admin template is beautiful and simple bootstrap, compatible with yii2 assets: [yiister/yii2-gentelella](https://github.com/yiister/yii2-gentelella), [Demo](https://colorlib.com/polygon/gentelella/)\n* Yii2 User is strong and proved user-module with many features: [dektrium/yii2-user](https://github.com/dektrium/yii2-user) (login `adminus`, password `adminus`)\n* Frontend and Backend User Controllers are filtered (by `dektrium/yii2-user`)\n* File or DB cache, but I recommend Redis Cache - it is really fast\n* Yii2 queue (DB table `queue`), but you can use *Redis-queue* or other [yii2-queue docs](https://github.com/yiisoft/yii2-queue/blob/master/docs/guide/README.md)\n* Queue Manager with backend (`/queuemanager/default/index`) using [ignatenkovnikita/yii2-queuemanager](https://github.com/ignatenkovnikita/yii2-queuemanager)\n* Log DB Target with backend (`/log/index`) - simply view log messages\n* .htaccess - config for **pretty urls** (rewrite index.php), *may be later add nginx config*\n* **UrlManagerFrontend** for backend app (all url rules in file `frontend/config/urls.php`, hostInfo in `common/config/params.php`)\n* i18n translations in `common/messages` with config (current only English and Russian, language translation are welcome!)\n* ContactForm in frontend app is improved: [himiklab/yii2-recaptcha-widget](https://github.com/himiklab/yii2-recaptcha-widget),\n all email are saved to DB (`common/models/EmailForm` Model), optionally send message to Viber messenger via bot\n  (install requirements [Bogdaan/viber-bot-php](https://github.com/Bogdaan/viber-bot-php) and config, uncomment code in Model)\n* Gii generator:\n1. added **yii2-queue** Jobs generator\n2. yii2 migration generator (from existing table) [Insolita/yii2-migrik](https://github.com/Insolita/yii2-migrik)\n3. [schmunk42/yii2-giiant](https://github.com/schmunk42/yii2-giiant) - really steroid, but in development with bugs\n\n\n## Available modules\nThese modules can be easy installed to Yii2-App using Composer:\n\n* Yii2 Super Blog Module (semantic, seo): [akiraz2/yii2-blog](https://github.com/akiraz2/yii2-blog)\n* Yii2 many web-statictic counters (all-in-one) *(yandex, google, own db-counter)*: [akiraz2/yii2-stat](https://github.com/akiraz2/yii2-stat)\n* yii2 opengraph component: [dragonjet/yii2-opengraph](https://github.com/dragonjet/yii2-opengraph)\n* yii2 settings (db+cache): [yii2mod/yii2-settings](https://github.com/yii2mod/yii2-settings)\n* etc...\n\n\n## Installation\nYii2-app template can be installed using composer. Run following command to download and install Yii2-app:\n```\ncomposer create-project --prefer-dist akiraz2/yii2-app my-site\n```\nAfter installation run `init`\n\n## Docker\nInstall yii2-app using [Docker](https://www.docker.com):\n\n0. run command to create project\n```\ndocker run --rm --interactive --tty \\\n  --volume $PWD:/app \\\n  --volume ${COMPOSER_HOME:-$HOME/.composer}:/tmp \\\n  composer create-project --prefer-dist akiraz2/yii2-app my-site\n```\n1. copy `.env-dist` to `.env`, configure if needed. You can change DB from mysql to postgresql - just change docker-compose.yml (and common/config/main-local.php after init)\n2. copy `/mysql/docker-entrypoint-initdb.d/createdb.sql.example` to `createdb.sql` if you have ready DB (so dont run migrations)\n3. `docker-compose build` (you can configure Docker PHP in /php/Dockerfile-debian before building, for example, add mongodb)\n4. `docker-compose up -d`\n5. `docker-compose exec php bash`, in terminal run `composer install`, then `php init`, then run other migrations (see next)\n6. open [http://localhost:8100](http://localhost:8100) to test frontend (backend is on [http://localhost:8200](localhost:8200))\n\nAccess to Console App: `docker-compose exec php bash` and `php yii mycommand/action`\n\n### Migrations\n\n\u003e **NOTE:** Make sure that you have properly configured `db` application component and run the following command\n\n```\nphp yii migrate/up --migrationPath=@vendor/dektrium/yii2-user/migrations\nphp yii migrate --migrationPath=@yii/log/migrations/\nphp yii migrate --migrationPath=vendor/ignatenkovnikita/yii2-queuemanager/migrations/\nphp yii migrate/up\n```\n\n### Default User Credentials\nlogin: `adminus`\npassword: `adminus`\n\n### Web server config\n\nFor newbies, I will recommend reading these instructions [yiisoft/yii2-app-advanced/start-installation.md](https://github.com/yiisoft/yii2-app-advanced/blob/master/docs/guide/start-installation.md) (apache, nginx, etc\\hosts\n\n## Development\n\n### Messages\nChange in `common/config/main.php`\n```\n'language' =\u003e 'ru-RU',\n'sourceLanguage' =\u003e 'en-US',\n```\n\nAdd your language in `common/messages/config.php`\n```\n    'languages' =\u003e [\n        'ru-RU',\n    ],\n```\nIn shell\n```\nphp yii message/extract common/messages/config.php\n```\n\n## Support\n\nIf you have any questions or problems with Yii2-App you can ask them directly\n by using following email address: `akiraz@bk.ru`.\n\n\n## Contributing\n\nIf you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.\n+PSR-2 style coding.\n\nI can apply patch, PR in 2-3 days! If not, please write me `akiraz@bk.ru`\n\n## Licensing\n\nYii2-App is released under the BSD License. See the bundled [LICENSE.md](LICENSE.md)\nfor details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakiraz2%2Fyii2-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakiraz2%2Fyii2-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakiraz2%2Fyii2-app/lists"}