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,657 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  
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

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,657
This week:524Up