PHPackages                             navari/youtube-api - 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. navari/youtube-api

ActiveLibrary

navari/youtube-api
==================

Youtube api to project

24PHP

Since Sep 22Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Navari/youtube-api)[ Packagist](https://packagist.org/packages/navari/youtube-api)[ RSS](/packages/navari-youtube-api/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Youtube Data APIs Client Library for PHP!
=========================================

[](#youtube-data-apis-client-library-for-php)

Hi! I'm your first Markdown file in **StackEdit**. If you want to learn about StackEdit, you can read me. If you want to play with Markdown, you can edit me. Once you have finished with me, you can create new files by opening the **file explorer** on the left corner of the navigation bar.

Gereksinimler
=============

[](#gereksinimler)

[PHP 5.4.0 or higher](https://www.php.net/)

Google Developer Console
------------------------

[](#google-developer-console)

1. [Google Developer Console](https://console.cloud.google.com/) a giriş yapın.
2. Henüz yoksa yeni bir **Proje** tanımlayın ve Sol üst taraftaki logonun yanından bu projeyi seçin.
3. Sol menüden **Api Hizmetler -&gt; Kimlik Bilgileri**ne gelin
4. "**Kimlik bilgileri oluştur**" butonuna tıklayın.
5. **Api anahtarı** oluşturun.
6. "**Kimlik bilgileri oluştur**" butonuna tekrar tıklayın.
7. **Oauth** istemci kimliği oluşturun.
8. Sol menüden **Api Hizmetler -&gt; Kimlik Bilgileri**ne gelin .env dosyanıza aşağıdaki bilgileri ekleyin

> YOUTUBE\_API\_KEY = "YOUR APİ KEY" YOUTUBE\_CLIENT\_SECRET="YOUR CLİENT SECRET" YOUTUBE\_CLIENT\_ID="YOUR CLIENT ID" YOUTUBE\_REDIRECT\_URL="YOUR REDIRECT URL"

Composer
--------

[](#composer)

Projenize dahil etmek için

> composer require navari/youtube-api

Örnek Kullanımlar
-----------------

[](#örnek-kullanımlar)

```
    /*
* Oauth ile login olan kişinin kendi kanallarının listesini getirir
*/
public function getMyChannels()
/*
* Id si verilen kanal listesini getirir
*/
public function getChannelsById(string $id)
/*
* Oauth ile login olan kişinin kendi yönetme yetkisi olan kanalları getirir
*/
public function getManagedByMeChannels(string $id)
/*
* Kullanıcı adına ait kanal listesini getirir
*/
public function getChannelsByUsername(string $username)
/*
* Id si verilen video listesini getirir
*/
public function getVideosById(string $id)
/*
* Login olan kişinin beğendiği video listesini getirir
*/
public function getMyLikedVideos()
/*
* Login olan kişi tarafından id si verilen videoya like, dislike, none yapılabilir. (none bir önceki yapılan işlemi geri alır)
*/
public function rateVideo(string $videoId, string $type = 'like')
/*
* Id si verilen vvideodaki yorum listesini getirir
*/
public function getCommentsByVideoId(string $videoId)
/*
* Id si verilen kanaldaki yorum listesini getirir
*/
public function getCommentsByChannelId(string $channelId)
/*
* Videoya yorum konusu girilir
*/
public function insertCommentThreadToVideo(string $videoId, string $commentMessage)
/*
* Yoruma yorum yazdırır
*/
public function insertCommentToCommentThread(string $commentThreadId, string $commentMessage)
/*
* Login olan kişinin var olan bir yorumu günceler
*/
public function updateComment(string $commentId, string $commentMessage)
/*
* Login olan kişi tarafından yorum için spam bildirimi yapar
*/
public function markAsSpamComment(string $commentId)
//....
//....
}

```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

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/79ed750d860834c2cdd231dbaf68372c5c484f2d28fcf677072fd8ea6a8783d0?d=identicon)[navari](/maintainers/navari)

---

Top Contributors

[![Navari](https://avatars.githubusercontent.com/u/9331482?v=4)](https://github.com/Navari "Navari (3 commits)")

### Embed Badge

![Health badge](/badges/navari-youtube-api/health.svg)

```
[![Health](https://phpackages.com/badges/navari-youtube-api/health.svg)](https://phpackages.com/packages/navari-youtube-api)
```

PHPackages © 2026

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