{"id":21214016,"url":"https://github.com/yongshengli/yiicms","last_synced_at":"2025-04-07T06:13:31.415Z","repository":{"id":15681816,"uuid":"77371919","full_name":"yongshengli/yiicms","owner":"yongshengli","description":"yiicms 是采用yii2 开发的企业站系统 http://www.qxylsb.com/","archived":false,"fork":false,"pushed_at":"2023-08-31T03:54:11.000Z","size":48287,"stargazers_count":118,"open_issues_count":2,"forks_count":60,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-03-31T05:05:53.416Z","etag":null,"topics":["cms","php","yii2","yiicms"],"latest_commit_sha":null,"homepage":"http://www.qxylsb.com/","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/yongshengli.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-26T09:04:11.000Z","updated_at":"2025-02-25T07:39:30.000Z","dependencies_parsed_at":"2024-11-20T21:40:05.935Z","dependency_job_id":null,"html_url":"https://github.com/yongshengli/yiicms","commit_stats":{"total_commits":651,"total_committers":3,"mean_commits":217.0,"dds":0.3655913978494624,"last_synced_commit":"fb5f51e2e69b12372048ab8d898b33679aa74548"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yongshengli%2Fyiicms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yongshengli%2Fyiicms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yongshengli%2Fyiicms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yongshengli%2Fyiicms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yongshengli","download_url":"https://codeload.github.com/yongshengli/yiicms/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247601449,"owners_count":20964864,"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":["cms","php","yii2","yiicms"],"created_at":"2024-11-20T21:25:37.647Z","updated_at":"2025-04-07T06:13:31.399Z","avatar_url":"https://github.com/yongshengli.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"YiiCms 企业站管理系统，基于 yii2 basic 开发\n===============================\n\n\n页面前台样式基于bootStrap 3.0 开发，管理后台样式是 adminLTE，权限部分使用 yii2-admin,大部分都是拿来主义，不想重复造轮...\n第三方包依赖管理使用 composer\nYiiCms gitHub 地址：https://github.com/yongshengli/yiicms/\n\nyiicms 主要功能：\n1. 新闻管理\n2. 产品管理\n3. 下载管理\n4. 图片管理\n5. 后台权限rbac\n6. 前台菜单自定义、后台菜单自定义\n7. 多模板多主题\n8. 内容批量操作\n9. 多语言支持\n10. 友情链接\n\nYiiCms版权\n----------\n\nhttp://git.oschina.net/templi/yiicms/blob/master/LICENSE.md\n\nDIRECTORY STRUCTURE\n-------------------\n\n      assets/             contains assets definition\n      commands/           contains console commands (controllers)\n      config/             contains application configurations\n      controllers/        contains Web controller classes\n      mail/               contains view files for e-mails\n      models/             contains model classes\n      modules/            contains modules  \n      runtime/            contains files generated during runtime\n      tests/              contains various tests for the basic application\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      yiicms.sql          sql file\n      composer.json       \n    \n\nREQUIREMENTS\n------------\n\nThe minimum requirement by this project template that your Web server supports PHP 5.5.0.\n\n\nINSTALLATION\n------------\n\n~~~\n1. php composer.phar global require \"fxp/composer-asset-plugin:^1.2.0\"\n   php composer.phar create-project --prefer-dist --stability=dev sheng/yiicms yiicms\n\n2. import yiicms.sql\n\n3. Database config\n\n4. 配置 ngixn 虚拟机或者apache虚拟机 网站根目录指向 yiicms/web/\n\n5. 不能将yiicms/web作为根目录时，可将yiicms/web 目录下的文件全部移动到 yiicms下，否则跳过此步骤\n\n~~~\n\n### Database\n\nEdit the file `config/db.php` with real data, for example:\n\n```php\n//demo file config/db.php.default 文件\nreturn [\n    'class' =\u003e 'yii\\db\\Connection',\n    'dsn' =\u003e 'mysql:host=localhost;dbname=yiicms',\n    'username' =\u003e 'root',\n    'password' =\u003e '123456',\n    'charset' =\u003e 'utf8',\n];\n```\n\ndocker 部署\n----------\n```shell\n1.下载代码\n2. cd yiicms \u0026\u0026 docker build -t sheng/yiicms .\n3. docker-compse up\n\u003c!-- 3. docker run -v /project-path/yiicms:/data/var/www/html/yiicms sheng/yiicms --\u003e\n```\n\n**NOTES:**\n~~~\n配置完成后可通过如下地址访问前台/后台\n\nhttp://127.0.0.1/ 前台\nhttp://127.0.0.1/backend.html 后台\n\n\n~~~\n\nYiiCms使用手册\n-------------\n\nhttp://www.zbeijing.com.cn/news/list/10.html\n\n\n\n\n关于route规则（url美化）配置\n-----------------------------\n请参考yii2用户指南\nhttp://www.yiiframework.com/doc-2.0/guide-runtime-routing.html#using-pretty-urls\n\n中文权威指南\nhttp://www.yiichina.com/doc/guide/2.0/rest-routing\n\n\n\n\nTESTING\n-------\n\nTests are located in `tests` directory. They are developed with [Codeception PHP Testing Framework](http://codeception.com/).\nBy default there are 3 test suites:\n\n- `unit`\n- `functional`\n- `acceptance`\n\nTests can be executed by running\n\n```\ncomposer exec codecept run\n``` \n\nThe command above will execute unit and functional tests. Unit tests are testing the system components, while functional\ntests are for testing user interaction. Acceptance tests are disabled by default as they require additional setup since\nthey perform testing in real browser. \n\n\n### Running  acceptance tests\n\nTo execute acceptance tests do the following:  \n\n1. Rename `tests/acceptance.suite.yml.example` to `tests/acceptance.suite.yml` to enable suite configuration\n\n2. Replace `codeception/base` package in `composer.json` with `codeception/codeception` to install full featured\n   version of Codeception\n\n3. Update dependencies with Composer \n\n    ```\n    composer update  \n    ```\n\n4. Download [Selenium Server](http://www.seleniumhq.org/download/) and launch it:\n\n    ```\n    java -jar ~/selenium-server-standalone-x.xx.x.jar\n    ``` \n\n5. (Optional) Create `yii2_basic_tests` database and update it by applying migrations if you have them.\n\n   ```\n   tests/bin/yii migrate\n   ```\n\n   The database configuration can be found at `config/test_db.php`.\n\n\n6. Start web server:\n\n    ```\n    tests/bin/yii serve\n    ```\n\n7. Now you can run all available tests\n\n   ```\n   # run all available tests\n   composer exec codecept run\n\n   # run acceptance tests\n   composer exec codecept run acceptance\n\n   # run only unit and functional tests\n   composer exec codecept run unit,functional\n   ```\n\n### Code coverage support\n\nBy default, code coverage is disabled in `codeception.yml` configuration file, you should uncomment needed rows to be able\nto collect code coverage. You can run your tests and collect coverage with the following command:\n\n```\n#collect coverage for all tests\ncomposer exec codecept run -- --coverage-html --coverage-xml\n\n#collect coverage only for unit tests\ncomposer exec codecept run unit -- --coverage-html --coverage-xml\n\n#collect coverage for unit and functional tests\ncomposer exec codecept run functional,unit -- --coverage-html --coverage-xml\n```\n\nYou can see code coverage output under the `tests/_output` directory.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyongshengli%2Fyiicms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyongshengli%2Fyiicms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyongshengli%2Fyiicms/lists"}