PHPackages                             ysx123/mx\_recipe - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. ysx123/mx\_recipe

ActiveLibrary

ysx123/mx\_recipe
=================

A face

011PHP

Since Mar 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/yanghuanfirst/ysx123-mx_recipe)[ Packagist](https://packagist.org/packages/ysx123/mx_recipe)[ RSS](/packages/ysx123-mx-recipe/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

食谱模块安装
======

[](#食谱模块安装)

### 1：直接在线上包，通过composer安装

[](#1直接在线上包通过composer安装)

```
composer require ysx123/mx_recipe:dev-master --ignore-platform-reqs
```

### 2：在项目中增加模块的路由。修改配置文件：D:\\www\\ysx\_www\\ph02\\shiny-pera-ios-dc\\frontend\\config\\main.php

[](#2在项目中增加模块的路由修改配置文件dwwwysx_wwwph02shiny-pera-ios-dcfrontendconfigmainphp)

```
 'components'=>[
 'urlManager' => [
            'enablePrettyUrl' => true,
            'showScriptName' => false,
            //'rules' =>  $url_rules,
            'rules' =>  array_merge($url_rules,['recipe/' => 'recipe/recipe/']),
  ],
],
//增加模块
'modules' => [
        'recipe' => [
            'class' => 'ysx\recipe\Module',
        ],
    ],
```

### 3：app-api-doc项目增加url路由，用于混淆。修改url.php文件

[](#3app-api-doc项目增加url路由用于混淆修改urlphp文件)

```
    //因为这是一个独立出去的模块。所以前面加个recipe模块名
    '/recipe/recipe/recipe-type' => "credit/syncabl1",
    '/recipe/recipe/index' => "credit/syncabl2",
    '/recipe/recipe/collect-list' => "credit/syncabl3",
    '/recipe/recipe/detail' => "credit/syncabl4",
    '/recipe/recipe/collect' => "credit/syncabl5",
    '/recipe/recipe/upload-image' => "credit/syncabl6",
    '/recipe/recipe/add-recipe' => "credit/syncabl7",
    '/recipe/recipe/del-recipe' => "credit/syncabl8",
    '/recipe/recipe/my-recipe' => "credit/syncabl9",
```

### 4:修改app-api-doc项目，增加文档，直接复制到相应项目的文档目录里。示例文档在：D:\\www\\ysx\_www\\app-api-doc\\docs\\ph\_shiny\_pera\_ios\\recipe.md

[](#4修改app-api-doc项目增加文档直接复制到相应项目的文档目录里示例文档在dwwwysx_wwwapp-api-docdocsph_shiny_pera_iosrecipemd)

### 5：执行生成混淆路由和混淆字段

[](#5执行生成混淆路由和混淆字段)

```
#混淆字段
php generater.php 目录名
#混淆路由
php generate_url.php 目录名 前缀
```

### 6：上传图片接口的key,固定位took,需要手动改一下文档

[](#6上传图片接口的key固定位took需要手动改一下文档)

### 7：线上项目执行数据迁移，创建表

[](#7线上项目执行数据迁移创建表)

```
    php yii migrate --migrationPath=vendor/ysx123/recipe/src/migrations/
```

#### 如果该迁移已经被执行过一次，那上面的命令无法再次执行，需要先删除掉执行记录。删除后再次执行上面迁移命令。

[](#如果该迁移已经被执行过一次那上面的命令无法再次执行需要先删除掉执行记录删除后再次执行上面迁移命令)

```
    DELETE FROM migration WHERE version = 'm230225_123456_create_recipe_table';
```

### 8:类型图标问题。如果设计图中有类型图标，需要手动上传到H5项目的中 recipe 目录，然后图片地址固定位y1.png到y10-png（这是选中的图片），未选中的是n1.png到n10.png。

[](#8类型图标问题如果设计图中有类型图标需要手动上传到h5项目的中-recipe-目录然后图片地址固定位y1png到y10-png这是选中的图片未选中的是n1png到n10png)

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3503cad84a363f1d3027c3b341e01ba306b8b2f0a201b1bb3c94e90ee8eadc74?d=identicon)[yanghuanfirst](/maintainers/yanghuanfirst)

### Embed Badge

![Health badge](/badges/ysx123-mx-recipe/health.svg)

```
[![Health](https://phpackages.com/badges/ysx123-mx-recipe/health.svg)](https://phpackages.com/packages/ysx123-mx-recipe)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
