{"id":28635432,"url":"https://github.com/dmstr/yii2-prototype-module","last_synced_at":"2025-06-12T17:10:16.132Z","repository":{"id":5438403,"uuid":"52913080","full_name":"dmstr/yii2-prototype-module","owner":"dmstr","description":"Twig, LESS and HTML Content prototyping module for Yii 2.0 Framework","archived":false,"fork":false,"pushed_at":"2025-01-09T13:39:26.000Z","size":207,"stargazers_count":5,"open_issues_count":0,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-13T02:41:20.839Z","etag":null,"topics":[],"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/dmstr.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-03-01T21:56:56.000Z","updated_at":"2025-01-09T12:58:01.000Z","dependencies_parsed_at":"2024-06-18T22:35:00.323Z","dependency_job_id":"4cc5b0d8-7b8c-4584-b3ef-1bad43da7d2d","html_url":"https://github.com/dmstr/yii2-prototype-module","commit_stats":{"total_commits":127,"total_committers":6,"mean_commits":"21.166666666666668","dds":0.3464566929133859,"last_synced_commit":"1aacaed133c2b5afabd61af78179c66655e12c19"},"previous_names":[],"tags_count":81,"template":false,"template_full_name":null,"purl":"pkg:github/dmstr/yii2-prototype-module","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fyii2-prototype-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fyii2-prototype-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fyii2-prototype-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fyii2-prototype-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmstr","download_url":"https://codeload.github.com/dmstr/yii2-prototype-module/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fyii2-prototype-module/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259509474,"owners_count":22868837,"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":[],"created_at":"2025-06-12T17:10:14.430Z","updated_at":"2025-06-12T17:10:16.118Z","avatar_url":"https://github.com/dmstr.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Yii2 Prototype Module\n===========================\n\n[![Latest Stable Version](https://poser.pugx.org/dmstr/yii2-prototype-module/v/stable.svg)](https://packagist.org/packages/dmstr/yii2-prototype-module) \n[![Total Downloads](https://poser.pugx.org/dmstr/yii2-prototype-module/downloads.svg)](https://packagist.org/packages/dmstr/yii2-prototype-module)\n[![License](https://poser.pugx.org/dmstr/yii2-prototype-module/license.svg)](https://packagist.org/packages/dmstr/yii2-prototype-module)\n\n\nTwig, LESS and HTML Content prototyping module for Yii 2.0 Framework\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 dmstr/yii2-prototype-module \"*\"\n```\n\nor add\n\n```\n\"dmstr/yii2-prototype-module\": \"*\"\n```\n\nto the require section of your `composer.json` file.\n\nRequirements\n------------\n\n- configured Twig view renderer in application (since 0.5.0-rc6)\n\nUsage\n-----\n\n####Prototype command:\n\n#####Configuration\n\nIn your console config add:\n\n```\n'controllerMap' =\u003e [\n    'prototype' =\u003e 'dmstr\\modules\\prototype\\commands'\n]\n```\n\n##### Commands:\n\n- prototype/export-html\n- prototype/export-less\n- prototype/export-twig\n\nEach of these commands exports either html, less or twig as a file on a given file path (via `--exportPath` flag) default is `@runtime/exports`\n\nNote: To escape file names you can use the `--escapeFileNames` flag\n\n- prototype/export-asset-bundle \u003cmainLessFile (optional)\u003e\n\nExports less files and an asset bunde to a given export path (via `--exportPath` flag) default is `@runtime/exports`\n\nNote: \n\n1.) You will be prompted to choose a namespace and to select less files which should be added to the asset bundle\n2.) The defined main less file will be automatical have default yes in confirmation\n\n--\u003e if you run this command on non interactive mode (--interactive=0), main less file will be added to the asset bundle and the namespace will be set to `app\\assets`\n\n\n### Twig example\n\n    {{ use ('hrzg/moxiecode/moxiemanager/widgets') }}\n    \n    {{ browse_button_widget( {\"tagName\": \"a\"} ) }}\n\n### Cache trigger time\n\n    \\Yii::$app-\u003ecache-\u003eget('prototype.less.changed_at');\n\nTesting\n-------\n\n    docker-compose up -d\n    \n    docker-compose run phpfpm codecept run\n    \n    \nCRUDS\n-----\n\n:bangbang: Do no regenerate CRUDs for `html`\n\n    $ yii batch \\\n        --tables=app_twig \\\n        --modelNamespace=dmstr\\\\modules\\\\prototype\\\\models \\\n        --modelQueryNamespace=dmstr\\\\modules\\\\prototype\\\\models\\\\query \\\n        --crudSearchModelNamespace=dmstr\\\\modules\\\\prototype\\\\models\\\\query \\\n        --crudControllerNamespace=dmstr\\\\modules\\\\prototype\\\\controllers \\\n        --crudViewPath=@dmstr/modules/prototype/views \\\n        \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmstr%2Fyii2-prototype-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmstr%2Fyii2-prototype-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmstr%2Fyii2-prototype-module/lists"}