PHPackages                             rahmatsyaparudin/yii2-skeleton - 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. [Framework](/categories/framework)
4. /
5. rahmatsyaparudin/yii2-skeleton

ActiveProject[Framework](/categories/framework)

rahmatsyaparudin/yii2-skeleton
==============================

Yii2 skeleton API project

03PHP

Since Jan 6Pushed 4mo agoCompare

[ Source](https://github.com/rahmatsyaparudin/yii2-skeleton)[ Packagist](https://packagist.org/packages/rahmatsyaparudin/yii2-skeleton)[ RSS](/packages/rahmatsyaparudin-yii2-skeleton/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 API Skeleton
=================

[](#yii2-api-skeleton)

**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
---------------

[](#1-install-yii2)

```
composer create-project --prefer-dist yiisoft/yii2-app-basic ./
```

2. Add the repository and package to `composer.json`
----------------------------------------------------

[](#2-add-the-repository-and-package-to-composerjson)

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

### Add this to `composer.json` `repositories`

[](#add-this-to-composerjson-repositories)

```
{
    "type": "vcs",
    "url": "https://github.com/rahmatsyaparudin/yii2-api-skeleton.git"
}
```

### Add this to `composer.json` `require-dev`

[](#add-this-to-composerjson-require-dev)

```
"rahmatsyaparudin/yii2-api-skeleton": "dev-main"
```

### Add this to `composer.json` `scripts`

[](#add-this-to-composerjson-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. Dependensi Composer Utama
----------------------------

[](#3-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`

4. Update Composer untuk yii2-api-skeleton
------------------------------------------

[](#4-update-composer-untuk-yii2-api-skeleton)

Run composer update for update:

```
composer update --ignore-platform-reqs
```

5. Copy skeleton scripts
------------------------

[](#5-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
```

6. Install the skeleton
-----------------------

[](#6-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.

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

[](#7-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.

```
composer skeleton-copy-examples
```

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.

[](#apply-updates-or-re-install-skeleton-components-without-affecting-your-existing-project-code)

8. Update Composer Dependencies
-------------------------------

[](#8-update-composer-dependencies)

Update all dependencies in `composer.json`:

```
composer update --ignore-platform-reqs
```

Notes
-----

[](#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.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance55

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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/45b801358732cceaeef686672761da68a76423655c1248a9635810fd54473b5f?d=identicon)[rsyaparudin](/maintainers/rsyaparudin)

---

Top Contributors

[![rahmatsyaparudin](https://avatars.githubusercontent.com/u/11365758?v=4)](https://github.com/rahmatsyaparudin "rahmatsyaparudin (30 commits)")

### Embed Badge

![Health badge](/badges/rahmatsyaparudin-yii2-skeleton/health.svg)

```
[![Health](https://phpackages.com/badges/rahmatsyaparudin-yii2-skeleton/health.svg)](https://phpackages.com/packages/rahmatsyaparudin-yii2-skeleton)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M190](/packages/laravel-telescope)[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M528](/packages/laravel-passport)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M255](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M591](/packages/laravel-prompts)

PHPackages © 2026

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