{"id":15963787,"url":"https://github.com/nullrefexcep/yii2-multisite","last_synced_at":"2025-03-26T13:31:39.559Z","repository":{"id":57029295,"uuid":"81713224","full_name":"NullRefExcep/yii2-multisite","owner":"NullRefExcep","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-01T20:58:31.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-21T22:21:42.269Z","etag":null,"topics":["yii2","yii2-extension"],"latest_commit_sha":null,"homepage":null,"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/NullRefExcep.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":"2017-02-12T08:36:40.000Z","updated_at":"2022-04-10T23:55:00.000Z","dependencies_parsed_at":"2022-08-23T18:50:09.603Z","dependency_job_id":null,"html_url":"https://github.com/NullRefExcep/yii2-multisite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullRefExcep%2Fyii2-multisite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullRefExcep%2Fyii2-multisite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullRefExcep%2Fyii2-multisite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullRefExcep%2Fyii2-multisite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NullRefExcep","download_url":"https://codeload.github.com/NullRefExcep/yii2-multisite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245662919,"owners_count":20652099,"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":["yii2","yii2-extension"],"created_at":"2024-10-07T17:00:28.217Z","updated_at":"2025-03-26T13:31:39.162Z","avatar_url":"https://github.com/NullRefExcep.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Yii2 Multisite\n===============\n[![Latest Stable Version](https://poser.pugx.org/nullref/yii2-multisite/v/stable)](https://packagist.org/packages/nullref/yii2-multisite) [![Total Downloads](https://poser.pugx.org/nullref/yii2-multisite/downloads)](https://packagist.org/packages/nullref/yii2-multisite) [![Latest Unstable Version](https://poser.pugx.org/nullref/yii2-multisite/v/unstable)](https://packagist.org/packages/nullref/yii2-multisite) [![License](https://poser.pugx.org/nullref/yii2-multisite/license)](https://packagist.org/packages/nullref/yii2-multisite)\n\nModule for multi site (WIP)\n\nInstallation\n------------\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nEither run\n\n```\nphp composer.phar require --prefer-dist nullref/yii2-multisite \"*\"\n```\n\nor add\n\n```\n\"nullref/yii2-multisite\": \"*\"\n```\n\nto the require section of your `composer.json` file.\n\nThen You have run console command for install this module:\n\n```\nphp yii module/install nullref/yii2-multisite\n```\n\nPay attention that if you don't use our [application template](https://github.com/NullRefExcep/yii2-boilerplate) \nit needs to change config files structure to have ability run commands that show above.\n\nPlease check this [documentation section](https://github.com/NullRefExcep/yii2-core#config-structure)\n\nYou need to add module to bootstrap list of application:\n\n```php\n//...\n'bootstrap' =\u003e [\n    'multisite',\n    //...\n    ],\n//...\n```\n\nUsing with admin module\n----------------------------\n\nYou can use this module with modules:\n- [Yii2 Admin](https://github.com/NullRefExcep/yii2-admin).\n- [Yii2 Full Admin](https://github.com/NullRefExcep/yii2-full-admin).\n\nModels overriding\n-----------------\n\n```php\n\n    'multisite' =\u003e [\n        'class' =\u003e 'nullref\\multisite\\Module',\n        'classMap' =\u003e [\n            'Site' =\u003e 'app\\models\\Site',\n            'SiteQuery' =\u003e 'app\\models\\SiteQuery',\n        ],\n    ],\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullrefexcep%2Fyii2-multisite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnullrefexcep%2Fyii2-multisite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullrefexcep%2Fyii2-multisite/lists"}