2017 © Pedro PelĂĄez
 

library php-enigma2

A modern PHP library and CLI for updating Enigma2/Dreambox bouquets

image

cedricblondeau/php-enigma2

A modern PHP library and CLI for updating Enigma2/Dreambox bouquets

  • Sunday, December 6, 2015
  • by cedricblondeau
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

php-enigma2

A modern PHP library and CLI for updating Enigma2/Dreambox bouquets, (*1)

CLI Usage

cp etc/config.yml.example etc/config.yml
vi config.yml # edit config.yml
chmod +x ./bin/console
mkdir tmp/
./bin/console download "http://domain.tld/bouquets.zip"
./bin/console upload tmp/bouquets
./bin/console reload

PHP Usage

// Retrieve a bouquets archive (from vhannibal.net for example) and extract it
$retriever = new Retriever();
$directory = $retriever->download("http://domain.tld/bouquets.zip");

// Parse bouquets files
$filesScanner = new Scanner($directory);
$files = $filesScanner->scan(); // Throws RuntimeException if invalid directory

// Create a dreambox/engima2 profile
$profile = new Profile("192.168.1.10", "user", "password");

// Upload files via FTP
$ftp = new Ftp($profile);
$ftp->upload($files); // Throws RuntimeException if FTP error

// Reload bouquets
$client = new HttpClient($profile);
$client->reloadBouquets();

The Versions

06/12 2015

dev-master

9999999-dev

A modern PHP library and CLI for updating Enigma2/Dreambox bouquets

  Sources   Download

MIT

The Requires