Skip to content

DragonSkyMine/PHP-Class

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP-Class

Some class in php that I use on some project

Deluge Class

To change

  • Do not forget to change the download path (line 9)

Usage

  • Initialize an object
$deluge = new DELUGE("url to server", "password");
  • Get the torrent already on the server
$torrents = $deluge->getTorrents();
  • Launch the download of a new torrent
$deluge->addTorrent($urlTorrent);
  • Do not forget to close the connexion once you finish using it
$deluge->close();

Tmdb Class

To change

  • Do not forget to change the lang you want the api to be call with (line 9)

Usage

  • Initialize an object (with your TMDB api key)
$tmdb = new TMDB($apiKey);
  • You can get all the infos about a movie with the id TMDB of the movie
$infosMovie = $tmdb->fullInfosMovie($movie);
  • You can get all the infos about a serie with the id TMDB of the series
$infosSerie = $tmdb->fullInfosSerie($series);

Free Class

Usage

  • Get your login mobile.free.fr and your api key and initialize an object
$free = new FREE($freeUser, $freeApiKey);
  • Send SMS to yourself
$free->sendMessage("Hello world");

Nyaa Class

Usage

  • initialize an object
$nyaa = new NYAA();
  • Get the result of a research
$result = $nyaa->getListSearch($request);

Ffprobe Class

Important

You need to be able to execute 'exec()' command in PHP and to have ffprobe installed on your server

Usage

  • initialize an object
$ffprobe = new FFPROBE();
  • Get a raw scan of a media file
$ffprobe->rawScanFile($pathfile);
  • Get a cleaned scan of a media file
$ffprobe->scanFile($pathfile);

About

Some class in php that I use on some project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages