PHP Classes

PHP Network Monitor: Monitor the statistics of network interfaces

Recommend this page to a friend!
  Info   View files Example   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2021-06-20 (5 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 97 This week: 1All time: 9,580 This week: 310Up
Version License PHP version Categories
php-network-monitor 1.0.0Custom (specified...5Networking, Unix, PHP 8
Description Author

This package can monitor the statistics of network interfaces.

It can check the available network interfaces in the current computer running under a Linux-based operating system.

The package can also retrieve statistics about a given network interface using the vnstat program or checking system virtual files containing values of several types of statistics of the traffic that goes through the specified network interface, like the number of transmitted bytes.

Innovation Award
PHP Programming Innovation award nominee
June 2021
Number 6
Monitoring aspects of a server running on the Internet can be useful to diagnose problems that need to be fixed quickly to avoid causing damages to businesses that depend on that server.

This package implements a solution to monitor network connections on a given Linux server using the vnstat program or checking the system virtual files related with networking connections.

Manuel Lemos
Picture of Isa Eken
  Performance   Level  
Name: Isa Eken <contact>
Classes: 14 packages by
Country: Turkey Turkey
Age: 19
All time rank: 329151 in Turkey Turkey
Week rank: 104 Up2 in Turkey Turkey Up
Innovation award
Innovation award
Nominee: 9x

Details

Network Monitor

Network monitoring application for ubuntu written in PHP.

Requirements

  • PHP ^8.0
  • Linux based operating system (Tested on Ubuntu 20.04)
  • vnstat

Installation

git clone https://github.com/isaeken/php-network-monitor.git network-monitor &&
cd network-monitor

composer install

sudo apt-get install vnstat &&
sudo service vnstat enable &&
sudo service vnstat start

Usage

Using with CLI

composer run monitor <interface> <?refresh>
composer run monitor eth0
composer run monitor eth0 refresh

Using in web

Host public folder using web server. (Nginx recommended)

Host using PHP development server:

php -S 0.0.0.0:80 public

LICENSE

The MIT License (MIT). Please see License File for more information.

  Files folder image Files  
File Role Description
Files folder imagebin (1 file)
Files folder imagepublic (1 file)
Files folder imagesrc (2 files)
Plain text file composer.json Data Auxiliary data
Plain text file LICENSE.md Lic. License text
Plain text file README.md Doc. Documentation

  Files folder image Files  /  bin  
File Role Description
  Plain text file monitor.php Example Example script

  Files folder image Files  /  public  
File Role Description
  Plain text file index.php Example Example script

  Files folder image Files  /  src  
File Role Description
  Plain text file NetworkInterface.php Class Class source
  Plain text file NetworkMonitor.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:97
This week:1
All time:9,580
This week:310Up
For more information send a message to info at phpclasses dot org.