PHPackages                             rumeysaustun/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. rumeysaustun/yii2-hospital

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

rumeysaustun/yii2-hospital
==========================

Simple widgets for connecting patient and doctor

031PHP

Since Jun 25Pushed 1y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 ile Hastane Widget Projesi
===============================

[](#yii2-ile-hastane-widget-projesi)

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

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 rumeysaustun/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/rumeysaustun/yii2-hospital/migrations

```

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

```
    'hospital' => [
        'class' => 'rumeysaustun\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/f8d438731ed27712148744a98184a65dd307a6415c41236e55bfcb096f7e4fed/68747470733a2f2f722e726573696d6c696e6b2e636f6d2f69666f392e706e67 "ResimLink - Resim Yükle")](https://resimlink.com/ifo9 "ResimLink - Resim Yükle")İşlem yapma: [![ResimLink - Resim Yükle](https://camo.githubusercontent.com/6f33e137731d588a49a6f1ef67c062faf66cf99cc7b57a3c9d04e958c770b38d/68747470733a2f2f722e726573696d6c696e6b2e636f6d2f4f6377592e706e67 "ResimLink - Resim Yükle")](https://resimlink.com/OcwY "ResimLink - Resim Yükle")İşlem listesi: [![ResimLink - Resim Yükle](https://camo.githubusercontent.com/0cfd78509c328bf313db6ed6ee8a8d41aef3680be37f24bca3a21ae6db851157/68747470733a2f2f722e726573696d6c696e6b2e636f6d2f354c6830462e706e67 "ResimLink - Resim Yükle")](https://resimlink.com/5Lh0F "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

Maintenance27

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity18

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/970b289f3fe89a95cfdd118dad16cf80365374655c5f4a423395a3e70e514d69?d=identicon)[rumeysaustun](/maintainers/rumeysaustun)

---

Top Contributors

[![rumeysaustun](https://avatars.githubusercontent.com/u/59111328?v=4)](https://github.com/rumeysaustun "rumeysaustun (44 commits)")

### Embed Badge

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

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

PHPackages © 2026

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