You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Magnus Walbeck ba3d6a2a03
Update README
8 months ago
.gitignore Add support for config file 4 years ago
LICENSE Initial commit 5 years ago
README.md Update README 8 months ago
index.php Fix pagnation 1 year ago
logic.php Change continue in switch statement to continue 2 9 months ago
style.css Add link to chat 1 year ago

README.md

Twitchlite

A lightweight livestream indexer for twitch.

It's made with basic PHP, HTML and CSS.

This project is using the Twitch v5 api.

Default limit is 25 livestreams sorted after the most popular. Limit can go up to 100 and the offset can be used to look through less popular channels.

You can also choose livestreams playing a specific game. There is an option to pull the most popular games for autocompletion. The default amount of games is pulled is 10, but can customized in config.php to a maximum of 100.

You can also view livestreams from the channels you follow by providing a oauth token. After you do, a "Only followed" checkbox will appear in the top, where you then can submit a query to only see the channels you follow. The required scope of the oauth token is "user_read". There is an option you can add to config.php to have this view as the default view.

If you're in need of an oauth token you can check out https://twitchtokengenerator.com/.

Installation

You can either clone the repo and set it up just as you would any other PHP site or you can have a look at the php-fpm based docker container https://hub.docker.com/r/mwalbeck/twitchlite

Config

For easy configuration place a config.php file in the root directory. Below you can see the available options. The assigned value is the default and in parentheses you can see the available options.

<?php
$oauth_token = "";
$only_followed_default = false; (true|false)
$default_limit = "25"; (1-100)
$get_top_games = false; (true|false)
$top_games_limit = "10"; (1-100)

if you wish to change one of the variables in logic.php you can simply override it by placing a variable with the same name in config.php with your desired value.

Demo

If you would like to try out Twitchlite you can visit the demo site at https://twitchlite.mwalbeck.org