https://github.com/empatisoft/yok-atlas
YÖK Atlas web sitesindeki veriler için geliştirilmiş olan bir projedir.
https://github.com/empatisoft/yok-atlas
Last synced: 5 months ago
JSON representation
YÖK Atlas web sitesindeki veriler için geliştirilmiş olan bir projedir.
- Host: GitHub
- URL: https://github.com/empatisoft/yok-atlas
- Owner: empatisoft
- License: mit
- Created: 2022-10-18T11:03:22.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-18T12:17:41.000Z (over 3 years ago)
- Last Synced: 2025-09-21T15:58:58.445Z (9 months ago)
- Language: PHP
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
## YÖK Atlas
YÖK Atlas web sitesindeki lisans program bilgilerinin alınmasını sağlamaktadır.
## Composer ile kurulum (Terminal)
Proje ana dizininde aşağıdaki komutu çalıştırın.
```
$ composer require empatisoft/yok-atlas:dev-main --prefer-source
```
## Composer ile kurulum (JSON)
composer.json dosyanızın require değerlerine ekleyip "composer update" komutunu çalıştırın.
```
"empatisoft/yok-atlas": "dev-main"
```
## Projenize elle ekleme
Sınıfı indirip proje dizininize kopyalayıp kullanabilirsiniz.
## Örnek Kullanım
```php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ERROR);
define('DIR', DIRECTORY_SEPARATOR);
define('ROOT', $_SERVER['DOCUMENT_ROOT'].DIR);
require_once ROOT."vendor".DIR."autoload.php";
require_once "helpers.php";
$atlas = new \Empatisoft\YokAtlas();
```
### Üniversiteye ait programları çekmek için
```
$universityCode = 1000;
$atlas->setUniversity($universityCode);
$programs = $atlas->getPrograms();
```
### Program bilgisini çekmek için
```
$programCode = 1000;
$year = 2021;
$atlas->setProgram($programCode);
$atlas->setYear($year);
$program = $atlas->getProgram();
```
## ->setUniversity() Metodu
Programlarını çekmek istediğiniz üniversiteye ait ÖSYM kodunu ayarlamanızı sağlar. (getPrograms metodu için zorunludur.)
## ->setYear() Metodu
Verilerini çekmek istediğiniz yılı ayarlar.
## ->getPrograms() Metodu
Üniversiteye ait tüm programları listeler. Bu metodun çalışabilmesi için "setUniversity" metodu ile üniversite kodu ayarlanmalıdır.
## ->getProgram() Metodu
Programa ait tüm analizlerin çekilmesini sağlar. Bu metodun çalışabilmesi için "setYear" metodu ile veri yılı ayarlanmalıdır.