
<p align='center'><img src="https://i.ibb.co/f7fLjcX/Tataplay.png" width="300" ></p>

<h4 align='center'>⚡ PHP Script For Generate M3U Playlist from <a href="tataplay.com">watch.tataplay.com</a> With 8-Days Catchup<br><br>🌟 If you find it helpful, Consider Giving STAR to This Repository❗</h4>

## ➡️Requirements:
- **Active Tataplay Account**
- **A Working Human Brain**

## 🎯 HOW TO USE

### 1️⃣ Download PHP Web Server

- **Mod APK For Mobiles:** [KSWEB PRO v3.988](https://apkmodct.com/ksweb/)
- **For PC (Windows):** [XAMPP](https://www.apachefriends.org/download.html)

### 2️⃣ Download and Extract Script

- **Download:** [Script Zip](TP.zip)

1. Extract all files into the `htdocs` under `TP` folder in file manager (path may vary for XAMPP).
    ```bash
    📂FileManager
    └───📂htdocs/
         └───📂TP/
              │────📄Playlist.php
              ├────📄functions.php
              ├────📄jwt.php
              ├────📄play.php
              └────📄 ....
    ```
2. Open KSWEB App (or XAMPP for PC) & Start ***Localhost Server*** & the **APACHE** server.

3. The Set-UP is Complete, & The Script is Ready to Use.

## How to Login:

- Open the Login Page<br>(port `80` for XAMPP): [http://localhost:8000/TP/login.php](http://localhost:8000/TP/login.php)

- You can Also Use default ip url
[http://127.0.0.1:8000/TP/login.php](http://127.0.0.1:8000/TP/login.php)

- Or Your Wifi IP Url which is Show in KSweb Home Page top ( make sure use port 8000 for mobile & tv, 80 for pc )

- Login with Your TP Sub ID & then your received OTP on Your RMN, Enter that OTP to login Account.
> **Note:** The Account You Use Must be **Active Account**.

## How to Access M3U Playlist:

- In Tivimate, NS Player & OTT Navigator, Use the following Playlist link (port `80` for XAMPP):
    ```
    http://localhost:8000/tataplay/Playlist.m3u
    ```
- & You can Also Copy Playlist url from index.php, Now Enjoy Your Tataplay Channels🎉.

## Script Features:

- All TATAPLAY Channels
- Multi-Quality Streaming
- Easy as Plug & Play
- Works on **All Compatible Platforms**
- Written in Simplest form, Good for understanding and performing Authentication Process in PHP

## Advanced Features:

- **8 Days Catchup Support** for available channels
- Automatically Extracts Required Tokens
- Well-Structured Cache System

## Warnings:

- This is for Educational Purposes Only
- Do not sell this script, it is 💯% Free

<hr>

[![License: GPL](https://img.shields.io/badge/License-GPL-blue.svg)](LICENSE)
[![Telegram](https://img.shields.io/badge/Telegram-Join%20Channel-blue?logo=telegram)](https://t.me/DenverIsAlivee)
[![PHP](https://img.shields.io/badge/PHP-7.4%2B-purple)]()

> ⚠️ **Disclaimer:** This project is for educational purposes only to demonstrate authentication and IPTV streaming mechanics. I am not responsible for any misuse of the code that may cause revenue loss to the concerned parties and owners of these services. This code is protected under the [GPL](LICENSE) license.

<!-- DO NOT REMOVE THIS CREDIT -->
<!-- © 2022-25 @Denver1769 -->

