承接 rahmatsyaparudin/yii2-skeleton 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rahmatsyaparudin/yii2-skeleton

Composer 安装命令:

composer create-project rahmatsyaparudin/yii2-skeleton

包简介

Yii2 skeleton API project

README 文档

README

Yii2 API Skeleton is a starter project for building RESTful APIs using Yii2. It provides a ready-to-use structure, helper scripts, and example configurations to accelerate your API development.

1. Install Yii2

composer create-project --prefer-dist yiisoft/yii2-app-basic myapp

2. Add the repository and package to composer.json

Open your project's composer.json and add the following sections:

"repositories": [
    {
        "type": "composer",
        "url": "https://asset-packagist.org"
    },
    {
        "type": "vcs",
        "url": "https://github.com/rahmatsyaparudin/yii2-api-skeleton.git"
    }
],
"require-dev": {
    "rahmatsyaparudin/yii2-api-skeleton": "dev-main"
},
"scripts": {
    "skeleton-update": [
        "composer update rahmatsyaparudin/yii2-api-skeleton --ignore-platform-reqs",
        "php scripts/install-skeleton.php"
    ],
    "skeleton-copy-examples": [
        "php scripts/copy-examples.php"
    ]
}

3. Update Composer untuk yii2-api-skeleton

Run composer update for update:

composer update  OR composer update --ignore-platform-req=ext-mongodb

4. Copy skeleton scripts

Make directory scripts and Copy the scripts folder from the package to your project root:

mkdir scripts; cp -r -Force vendor/rahmatsyaparudin/yii2-api-skeleton/scripts/* ./scripts

5. Install the skeleton

Run the custom Composer script to install the skeleton files:

composer skeleton-update

This command will set up the necessary folder structure and example configurations in your project.

6. Copy example files (first-time setup only)

Run this command only the first time you set up the skeleton: This will copy example configuration and code files to your project for reference and customization.

Usage

composer skeleton-copy-examples

7. Dependensi Composer Utama

Skeleton will add the following dependencies to your composer.json:

  • yiisoft/db-pgsql: ^1.0
  • mongodb/mongodb: ^1.20
  • firebase/php-jwt: ^6.10
  • paragonie/sodium_compat: ^2.0
  • vlucas/phpdotenv: ^5.6

Apply updates or re-install skeleton components without affecting your existing project code.

8. Update Composer Dependencies

Update all dependencies in composer.json:

composer update

Notes

This package is meant for development only, so it is added under require-dev.

Make sure to adjust your configuration files after copying examples to match your environment. Apply updates or re-install skeleton components without affecting your existing project code.

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-11-04