PHP Classes

Speedport Hybrid API: Access and control Speedport Router

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 185 All time: 8,656 This week: 524Up
Version License PHP version Categories
sph-api 1.0.13GNU Lesser Genera...5.4.0PHP 5, Web services, Hardware
Description 

Author

This package can access and control Speedport Router.

It can send HTTP requests to a Speedport Router accepting connections in a given IP address.

The package can login as administrator and query the status of several aspects of the router as well send some control commands. Currently it can:

- Change the status of the DSL or LTE connection
- Add, remove and check the firewall port forwarding status
- Manage the phone book entries
- Get the list of taken, missed and dialed phone calls
- Get the router up time, firmware and logs
- Reset to factory default configuration
- Reboot the router

Innovation Award
PHP Programming Innovation award nominee
August 2015
Number 4


Prize: PHP Tools for Visual Studio Personal license
Speedport Hybrid is a router used by German Internet Service Providers to provide Internet and telephony services.

This class provides means for controlling this type of router from PHP using HTTP requests to the router Web interface.

Manuel Lemos
Picture of Jan Altensen
  Performance   Level  
Name: Jan Altensen <contact>
Classes: 12 packages by
Country: Germany Germany
Age: 30
All time rank: 105165 in Germany Germany
Week rank: 216 Up9 in Germany Germany Up
Innovation award
Innovation award
Nominee: 5x

Example

<?php
require_once('Data.class.php');
$password = 'your_router_password';
$url = 'http://speedport.ip/';
$sp = new Data($url);
$sp->login($password);


Details

speedport hybrid php api

Build Status Release License

Access Speedport Hybrid Router through PHP

THIS CLASS IS ONLY FOR SPEEDPORT HYBRID

License

This project is licensed under GNU LESSER GENERAL PUBLIC LICENSE Version 3.

known endpoints for getData() and sentRequest():

| Endpoint | | -------------- | | dsl | | interfaces | | arp | | session | | dhcp_client | | dhcp_server | | ipv6 | | dns | | routing | | igmp_proxy | | igmp_snooping | | wlan | | module | | memory | | speed | | webdav | | bonding_client | | bonding_tunnel | | filterlist | | bonding_tr181 | | lteinfo | | status | | Connect | | WLANBasic | | WLANAccess | | LAN | | NASLight | | INetIP | | FilterAndTime | | Portforwarding | | PhoneBook | | PhoneCalls | | SystemMessages | | DynDNS | | Overview |

PHP requirements ============= * PHP >= 5.4.0 * PHP extension hash * PHP extension curl * PHP extension json * PHP extension pcre * PHP extension ctype * PHP extension rrd (optional, for rrd graphs)

rrdtool integration

dsl status lte status

See the `rrd` directory for sample scripts.


  Files folder image Files (136)  
File Role Description
Files folder imageassets (2 files)
Files folder imageCryptLib (2 files, 8 directories)
Files folder imagelib (2 directories)
Files folder imagerrd (2 files)
Files folder imagetests (34 files)
Plain text file LICENSE Data Auxiliary data
Plain text file README.md Data Auxiliary data
Plain text file SpeedportHybrid.class.php Class Class source

  Files folder image Files (136)  /  assets  
File Role Description
  Image file dsl-1h.png Data Auxiliary data
  Image file lteinfo-1h.png Data Auxiliary data

  Files folder image Files (136)  /  CryptLib  
File Role Description
Files folder imageCipher (1 file, 1 directory)
Files folder imageCore (6 files, 1 directory)
Files folder imageEncryption (2 files, 1 directory)
Files folder imageHash (2 files)
Files folder imageKey (4 files, 2 directories)
Files folder imageMAC (2 files, 1 directory)
Files folder imagePassword (2 files, 1 directory)
Files folder imageRandom (5 files, 2 directories)
  Plain text file bootstrap.php Class Class source
  Plain text file CryptLib.php Class Class source

  Files folder image Files (136)  /  CryptLib  /  Cipher  
File Role Description
Files folder imageBlock (4 files, 2 directories)
  Plain text file Factory.php Class Class source

  Files folder image Files (136)  /  CryptLib  /  Cipher  /  Block  
File Role Description
Files folder imageCipher (5 files)
Files folder imageMode (6 files)
  Plain text file AbstractCipher.php Class Class source
  Plain text file AbstractMode.php Class Class source
  Plain text file Cipher.php Class Class source
  Plain text file Mode.php Class Class source

  Files folder image Files (136)  /  CryptLib  /  Cipher  /  Block  /  Cipher  
File Role Description
  Plain text file AES.php Class Class source
  Plain text file DES.php Class Class source
  Plain text file MCrypt.php Class Class source
  Plain text file Rijndael.php Class Class source
  Plain text file TripleDES.php Class Class source

  Files folder image Files (136)  /  CryptLib  /  Cipher  /  Block  /  Mode  
File Role Description
  Plain text file CBC.php Class Class source
  Plain text file CCM.php Class Class source
  Plain text file CFB.php Class Class source
  Plain text file CTR.php Class Class source
  Plain text file ECB.php Class Class source
  Plain text file NOFB.php Class Class source

  Files folder image Files (136)  /  CryptLib  /  Core  
File Role Description
Files folder imageBigMath (3 files)
  Plain text file AbstractFactory.php Class Class source
  Plain text file AutoLoader.php Class Class source
  Plain text file BaseConverter.php Class Class source
  Plain text file BigMath.php Class Class source
  Plain text file Enum.php Class Class source
  Plain text file Strength.php Class Class source

  Files folder image Files (136)  /  CryptLib  /  Core  /  BigMath  
File Role Description
  Plain text file BCMath.php Class Class source
  Plain text file GMP.php Class Class source
  Plain text file PHPMath.php Class Class source

  Files folder image Files (136)  /  CryptLib  /  Encryption  
File Role Description
Files folder imagePackingMode (5 files)
  Plain text file Factory.php Class Class source
  Plain text file PackingMode.php Class Class source

  Files folder image Files (136)  /  CryptLib  /  Encryption  /  PackingMode  
File Role Description
  Plain text file ANSIx923.php Class Class source
  Plain text file ISO10126.php Class Class source
  Plain text file None.php Class Class source
  Plain text file PKCS7.php Class Class source
  Plain text file Zeros.php Class Class source

  Files folder image Files (136)  /  CryptLib  /  Hash  
File Role Description
  Plain text file CRC32.php Class Class source
  Plain text file Hash.php Class Class source

  Files folder image Files (136)  /  CryptLib  /  Key  
File Role Description
Files folder imageDerivation (3 files, 2 directories)
Files folder imageSymmetric (2 files, 1 directory)
  Plain text file Factory.php Class Class source
  Plain text file Generator.php Class Class source
  Plain text file Key.php Class Class source
  Plain text file Symmetric.php Class Class source

  Files folder image Files (136)  /  CryptLib  /  Key  /  Derivation  
File Role Description
Files folder imageKDF (3 files)
Files folder imagePBKDF (6 files)
  Plain text file AbstractDerivation.php Class Class source
  Plain text file KDF.php Class Class source
  Plain text file PBKDF.php Class Class source

  Files folder image Files (136)  /  CryptLib  /  Key  /  Derivation  /  KDF  
File Role Description
  Plain text file KDF1.php Class Class source
  Plain text file KDF2.php Class Class source
  Plain text file KDF3.php Class Class source

  Files folder image Files (136)  /  CryptLib  /  Key  /  Derivation  /  PBKDF  
File Role Description
  Plain text file BCrypt.php Class Class source
  Plain text file PBKDF1.php Class Class source
  Plain text file PBKDF2.php Class Class source
  Plain text file Schneier.php Class Class source
  Plain text file SHA256.php Class Class source
  Plain text file SHA512.php Class Class source

  Files folder image Files (136)  /  CryptLib  /  Key  /  Symmetric  
File Role Description
Files folder imageGenerator (1 file)
  Plain text file AbstractSymmetric.php Class Class source
  Plain text file Raw.php Class Class source

  Files folder image Files (136)  /  CryptLib  /  Key  /  Symmetric  /  Generator  
File Role Description
  Plain text file Internal.php Class Class source

  Files folder image Files (136)  /  CryptLib  /  MAC  
File Role Description
Files folder imageImplementation (2 files)
  Plain text file AbstractMAC.php Class Class source
  Plain text file MAC.php Class Class source

  Files folder image Files (136)  /  CryptLib  /  MAC  /  Implementation  
File Role Description
  Plain text file CMAC.php Class Class source
  Plain text file HMAC.php Class Class source

  Files folder image Files (136)  /  CryptLib  /  Password  
File Role Description
Files folder imageImplementation (8 files)
  Plain text file Factory.php Class Class source
  Plain text file Password.php Class Class source

  Files folder image Files (136)  /  CryptLib  /  Password  /  Implementation  
File Role Description
  Plain text file APR1.php Class Class source
  Plain text file Blowfish.php Class Class source
  Plain text file Drupal.php Class Class source
  Plain text file Hash.php Class Class source
  Plain text file Joomla.php Class Class source
  Plain text file PBKDF.php Class Class source
  Plain text file PHPASS.php Class Class source
  Plain text file PHPBB.php Class Class source

  Files folder image Files (136)  /  CryptLib  /  Random  
File Role Description
Files folder imageMixer (3 files)
Files folder imageSource (8 files)
  Plain text file AbstractMixer.php Class Class source
  Plain text file Factory.php Class Class source
  Plain text file Generator.php Class Class source
  Plain text file Mixer.php Class Class source
  Plain text file Source.php Class Class source

  Files folder image Files (136)  /  CryptLib  /  Random  /  Mixer  
File Role Description
  Plain text file DES.php Class Class source
  Plain text file Hash.php Class Class source
  Plain text file Rijndael.php Class Class source

  Files folder image Files (136)  /  CryptLib  /  Random  /  Source  
File Role Description
  Plain text file CAPICOM.php Class Class source
  Plain text file MicroTime.php Class Class source
  Plain text file MTRand.php Class Class source
  Plain text file OpenSSL.php Class Class source
  Plain text file Rand.php Class Class source
  Plain text file Random.php Class Class source
  Plain text file UniqID.php Class Class source
  Plain text file URandom.php Class Class source

  Files folder image Files (136)  /  lib  
File Role Description
Files folder imageexception (3 files)
Files folder imagetrait (7 files)

  Files folder image Files (136)  /  lib  /  exception  
File Role Description
  Plain text file NotImplementedException.class.php Class Class source
  Plain text file RebootException.class.php Class Class source
  Plain text file RouterException.class.php Class Class source

  Files folder image Files (136)  /  lib  /  trait  
File Role Description
  Plain text file Connection.class.php Class Class source
  Plain text file CryptLib.class.php Class Class source
  Plain text file Firewall.class.php Class Class source
  Plain text file Login.class.php Class Class source
  Plain text file Network.class.php Class Class source
  Plain text file Phone.class.php Class Class source
  Plain text file System.class.php Class Class source

  Files folder image Files (136)  /  rrd  
File Role Description
  Plain text file graphRRDBs.sh Data Auxiliary data
  Plain text file rrd.php Example Example script

  Files folder image Files (136)  /  tests  
File Role Description
  Plain text file arp.php Example Example script
  Plain text file bonding_client.php Example Example script
  Plain text file bonding_tr181.php Example Example script
  Plain text file bonding_tunnel.php Example Example script
  Plain text file checkfirmware.php Example Example script
  Plain text file Data.class.php Class Example script
  Plain text file dhcp_client.php Example Example script
  Plain text file dhcp_server.php Example Example script
  Plain text file dialedcalls.php Example Example script
  Plain text file dns.php Example Example script
  Plain text file dsl.php Example Example script
  Plain text file example.config.php Example Example script
  Plain text file filterlist.php Example Example script
  Plain text file igmp_proxy.php Example Example script
  Plain text file igmp_snooping.php Example Example script
  Plain text file interfaces.php Example Example script
  Plain text file ipv6.php Example Example script
  Plain text file lteinfo.php Example Example script
  Plain text file memory.php Example Example script
  Plain text file missedcalls.php Example Example script
  Plain text file module.php Example Example script
  Plain text file phonebookentrys.php Example Example script
  Plain text file reboot.php Example Example script
  Plain text file reconnect.php Example Example script
  Plain text file reconnectlte.php Example Example script
  Plain text file routing.php Example Example script
  Plain text file session.php Example Example script
  Plain text file speed.php Example Example script
  Plain text file status.php Example Example script
  Plain text file syslog.php Example Example script
  Plain text file takencalls.php Example Example script
  Plain text file uptime.php Example Example script
  Plain text file webdav.php Example Example script
  Plain text file wlan.php Example Example script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:185
This week:0
All time:8,656
This week:524Up