{"id":19725496,"url":"https://github.com/easychen/aoi","last_synced_at":"2025-04-30T00:31:12.556Z","repository":{"id":2729605,"uuid":"3724799","full_name":"easychen/Aoi","owner":"easychen","description":"LazyPHP3的看板娘，能帮你自动创建模板，Action和测试。","archived":false,"fork":false,"pushed_at":"2012-03-21T09:49:01.000Z","size":317,"stargazers_count":12,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-05T20:11:13.393Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://ftqq.com/aoi/","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/easychen.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":"2012-03-15T03:10:28.000Z","updated_at":"2019-01-23T22:43:37.000Z","dependencies_parsed_at":"2022-09-10T03:23:16.352Z","dependency_job_id":null,"html_url":"https://github.com/easychen/Aoi","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/easychen%2FAoi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2FAoi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2FAoi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2FAoi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/easychen","download_url":"https://codeload.github.com/easychen/Aoi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251607555,"owners_count":21616789,"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":"2024-11-11T23:30:37.674Z","updated_at":"2025-04-30T00:31:09.270Z","avatar_url":"https://github.com/easychen.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Aoi是一只傲娇小萝莉 , 也是LP框架的看板娘。\n你可以这样支使她帮你干活: aoi [action] [args]\n\n\u003cpre\u003e\n- Create Project: aoi cp project_name \n- Create Action: aoi ca controller_name action_name \n- Create Test: aoi ct controller_name action_name \n- Create View: aoi cv controller_name action_name layout_name\n\u003c/pre\u003e\n\n# 安装\nAoi使用命令行和主人交谈。为了保证能在任何目录召唤出Aoi，你需要进行简单的配置。\n\n## Windows环境\n为Aoi找好一个非临时的目录，以防你不小心把她推倒到回收站。假设该目录为E:\\aoi\n\n打开【我的电脑】--右键--\u003e【属性】---【高级】Tab---\u003e【环境变量】--\u003e【系统变量】，选择【PATH】项，然后点【编辑】。在原有内容最后加上【;E:\\aoi】，保存。\n然后你就可以任意目录使用aoi命令召唤Aoi了。\n\n## Mac环境\n为Aoi找好一个非临时的目录，以防你不小心把她推倒到回收站。假设该目录为\\Users\\easychen\\Aoi\n\n进入Terminal，先给aoi加上可执行权限\n\u003cpre\u003e\nchmod +x aoi\n\u003c/pre\u003e\n\n然后将aoi的路径加入bash的PATH中\n\u003cpre\u003e\necho \"export PATH=/Users/easychen/Aoi:$PATH\" \u003e\u003e ~/.bash_profile\n\u003c/pre\u003e\n\n然后你就可以任意目录使用aoi命令召唤Aoi了。\n\n# 配置编辑器\n打开Aoi目录下的aoi.config.php\n将第一行换成你喜欢的编辑器\n\u003cpre\u003e\n// Mac\ndefine('AOI_EDITOR_PATH' , 'open -a 已经在Mac下安装的编辑器名称');\n// Win\ndefine('AOI_EDITOR_PATH' , 'E:\\\\notepad++.exe');\n\u003c/pre\u003e\n\n# 配置代码模板\nAoi在创建项目、Action和测试的时候，都会使用到代码模板。这些代码模板放在Aoi目录下的【_aoi_boudoir/demos】下。\n\n默认情况下，Aoi在创建项目时不会创建【_lp】目录下的LP3核心代码。而是通过PHP的include_path去加载它。这样可以多个项目共用一份【_lp】目录，更新和管理更方便。\n\n如果你希望每个项目使用自己的【_lp】目录，只需要将LP3的【_lp】目录copy到【Aoi/_aoi_boudoir/demos/empty_project】下就OK了。\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasychen%2Faoi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feasychen%2Faoi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasychen%2Faoi/lists"}