PHPackages                             busrabaysa/yii2-hospital - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. busrabaysa/yii2-hospital

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

busrabaysa/yii2-hospital
========================

Simple widgets for connecting patient and doctor

00PHP

Since Jan 20Pushed 5y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-proje
==========

[](#yii2-proje)

Rumeysa ÜSTÜN 190202011
Büşra Nur BAYSA 190202091

Yii2-hastane
============

[](#yii2-hastane)

Bu modül, hastane sitesi için birkaç widget sağlar. Bu projede, doktor ve hastayı birbirine bağlayan formlu tek bir widget vardır.

Kurulumlar
----------

[](#kurulumlar)

Sırasıyla aşağıdaki yazılımlar kurulmalıdır.
1.[Virtualbox](https://www.virtualbox.org/wiki/Downloads)
2.[XAMPP](https://www.apachefriends.org/tr/download.html)(7.3.26 sürümü kullanılmıştır.)
3.[Git](https://www.git-scm.com/)
4.[GitHub API token](https://github.com/settings/tokens) Generate new token'a tıklayarak yeni bir token oluşturulmalıdır.
5.[Composer](https://getcomposer.org/)
6.Composer'ı ve XAMPP'ı çalıştırdıktan sonra yönetici yetkileriyle terminal (komut satırı) açılarak aşağıdaki direktifler uygulanmalıdır. Yii2 şu komut ile kurulmalıdır:

```
composer.phar create-project yiisoft/yii2-app-advanced advanced2

```

7.Aşağıdaki kod ile proje init edilmelidir. Development seçeneği ile ilerlenir.

```
init

```

8.Packagist'ten proje aşağıdaki komutla çekilir.

```
composer require busrabaysa/yii2-hospital "dev-main"

```

9.Aşağıdaki kod çalıştırılmalıdır.

```
yii migrate/up

```

10.Veritabanı işlemlerini yapabilmek için aşağıdaki kod girilmelidir.

```
php yii migrate/up --migrationPath=vendor/busrabaysa/yii2-hospital/migrations

```

11.Ve bunu backend/config/main.php'deki modules bölümüne ekleyin:

```
    'hospital' => [
        'class' => 'busrabaysa\hospital\Module',
        'adminRoles' => ['@'],
    ],

```

Çalıştırma
----------

[](#çalıştırma)

Aşağıdaki url'yi tarayıcınızın arama kısmına giriniz.

```
localhost/advanced2/backend/web/index.php?r=hospital/doctor/index

```

Resimler
--------

[](#resimler)

Yeni hasta kaydı: [![ResimLink - Resim Yükle](https://camo.githubusercontent.com/0e1e41d5fd8f7f50cfcf56bb92d03decc056beb6e8fb5cb9b1e69829a9cb410c/68747470733a2f2f722e726573696d6c696e6b2e636f6d2f4f4564322e706e67 "ResimLink - Resim Yükle")](https://resimlink.com/OEd2 "ResimLink - Resim Yükle")Hasta listesi: [![ResimLink - Resim Yükle](https://camo.githubusercontent.com/a7d420496ff2c52a2bb3624dfe5a6edb17f7331a8fcc3ddff190cb959f603838/68747470733a2f2f722e726573696d6c696e6b2e636f6d2f6a78645a3147612e706e67 "ResimLink - Resim Yükle")](https://resimlink.com/jxdZ1Ga "ResimLink - Resim Yükle")Hasta listesinde arama yapmak: [![ResimLink - Resim Yükle](https://camo.githubusercontent.com/c49acc58a9ff236d308e17f908807b483c23991dfe99d11e03cb2014a6d725a3/68747470733a2f2f722e726573696d6c696e6b2e636f6d2f6742637645756d2e706e67 "ResimLink - Resim Yükle")](https://resimlink.com/gBcvEum "ResimLink - Resim Yükle")Doktor ekleme: [![ResimLink - Resim Yükle](https://camo.githubusercontent.com/1f41f0d7bba63846932152f06956fa5fbda35e7ab8d09abb8747a2cbab22a368/68747470733a2f2f722e726573696d6c696e6b2e636f6d2f6341704947312e706e67 "ResimLink - Resim Yükle")](https://resimlink.com/cApIG1 "ResimLink - Resim Yükle")İşlem yapma: [![ResimLink - Resim Yükle](https://camo.githubusercontent.com/adfcb0d8b707b0558ba6afe41a4b5beadfdee10d2dadd6a9e630d2f40336f42b/68747470733a2f2f722e726573696d6c696e6b2e636f6d2f474b562e706e67 "ResimLink - Resim Yükle")](https://resimlink.com/GKV "ResimLink - Resim Yükle")İşlem listesi: [![ResimLink - Resim Yükle](https://camo.githubusercontent.com/fe4d886b79b36aa03193183655a5bd1d9c5dbce1034fefb4a7c9713f470d0c2c/68747470733a2f2f722e726573696d6c696e6b2e636f6d2f614f31512e706e67 "ResimLink - Resim Yükle")](https://resimlink.com/aO1Q "ResimLink - Resim Yükle")

Ekler
-----

[](#ekler)

'@' olarak ayarlanırsa, yalnızca oturum açmış kullanıcılar bu modülü kullanabilir;

'?' olarak ayarlanırsa yalnızca oturum açmamış kullanıcılar bu modülü kullanabilir;

'\*' olarak ayarlanırsa herkes bu modülü kullanabilir;

veya rolleri array olarak ayarlayabilirsiniz =&gt; \['superadmin', 'administrator', 'admin'\]

Rotalar
-------

[](#rotalar)

Doktor Listesi: / hospital / doctor / index

Yeni Doktor: / hospital / doctor / form

Hasta Listesi: / hospital / patient / index

Yeni Hasta: / hospital / patient / form

Hastayı Güncelle (hasta kimliği kullanın): / hospital / patient / güncelleme(update)? id = 1

Hasta Eylemi (hasta kimliği kullanın): / hospital / patient / eylem(action) / görünüm(view)? id = 1

Eylem Listesi(Actions List): / hospital / eylem(action) / index

Widget'lar
----------

[](#widgetlar)

Doktor formu widget'ını kullanabilirsiniz:

```

```

Hasta formu widget'ını kullanabilirsiniz:

```

```

Eylem (action) formu widget'ını kullanabilirsiniz (hasta modelini parametrelere göndermeniz gerekir):

```

```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

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/02ed234d004b4fe43efa6889aa05583c0dc4b408f56e1426803d7918afedaab2?d=identicon)[busrabaysa](/maintainers/busrabaysa)

---

Top Contributors

[![busrabaysa](https://avatars.githubusercontent.com/u/74297910?v=4)](https://github.com/busrabaysa "busrabaysa (12 commits)")

### Embed Badge

![Health badge](/badges/busrabaysa-yii2-hospital/health.svg)

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

###  Alternatives

[wapmorgan/morphos

A morphological solution for Russian and English language written completely in PHP. Provides classes to inflect personal names, geographical names, decline and pluralize nouns, generate cardinal and ordinal numerals, spell out money amounts and time.

8351.3M7](/packages/wapmorgan-morphos)[mcp/sdk

Model Context Protocol SDK for Client and Server applications in PHP

1.4k423.9k30](/packages/mcp-sdk)[hackzilla/password-generator

Password Generator Library

3035.2M15](/packages/hackzilla-password-generator)[alibaba/nacos

阿里巴巴nacos配置中心php客户端

19340.8k1](/packages/alibaba-nacos)[bvdputte/kirby-fingerprint

Cache-busting utility to fingerprint assets (JS/CSS) in Kirby 3

1610.0k](/packages/bvdputte-kirby-fingerprint)

PHPackages © 2026

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