PHP Classes

BattMan: Monitor the battery charge level of computers

Recommend this page to a friend!
  Info   View files View files (14)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-09 (2 months ago) RSS 2.0 feedStarStar 36%Total: 759 All time: 4,439 This week: 114Up
Version License PHP version Categories
battman 1.9BSD License5.4PHP 5, System information, Windows, H...
Description 

Author

This class can monitor the battery charge level of computers.

It can check the level of charge of batteries in computers that have them and are running on Windows using the WinBinder extension to work as native a Windows application.

The class can show the battery level on a window using a chart and bar view that are updated regularly.

Innovation Award
PHP Programming Innovation award nominee
October 2012
Number 2


Prize: One copy of DWebPro Standard License
Notebooks and devices powered by rechargeable batteries provide means to retrieve the information about the current state and charge level of the battery.

This class provides a nice user interface to monitor and show the current battery level of a computer running Windows.

Manuel Lemos
Picture of Stefan Löwe
Name: Stefan Löwe <contact>
Classes: 2 packages by
Country: Germany Germany
Age: 43
All time rank: 1908120 in Germany Germany
Week rank: 312 Up18 in Germany Germany Up
Innovation award
Innovation award
Nominee: 2x

Details

BattMan ======= BattMan is a tool to monitor battery usage. It is a client-side application based on [WinBinder](https://github.com/stefan-loewe/WinBinder "WinBinder") and [Woody](https://github.com/stefan-loewe/Woody "Woody"). What is needed to run BattMan? ------------------------------ You need to have PHP 5.4 or above installed, as well as the latest version of the [WinBinder extension](https://github.com/stefan-loewe/WinBinder/ "WinBinder extension"). All this is taken care of if you get the easy-peasy binary distribution from the <cod>dist</code> in this repository. How to install BattMan? ----------------------- - easy-peasy binary distribution - download the [binary distribution](https://github.com/stefan-loewe/BattMan/blob/master/dist/) - run `php.exe BattMan.phar` - installation via git repository - `git clone https://github.com/stefan-loewe/BattMan.git` - `cd BattMan` - `php composer.phar install` - run `php bootstrap.php` from the main folder How to run BattMan? ------------------- After having installed BattMan and the respective dependencies, just run `php bootstrap.php`, or `php BattMan.phar` if you want to run it from the phar archive. Which operating system does BattMan need? ----------------------------------------- BattMan is only tested on Microsoft Windows 7, it may run on older versions, too. Why does BattMan exist? ----------------------- This is nothing more than an effort for show-casing [Woody](https://github.com/stefan-loewe/Woody/ "Woody") and the [WinBinder](https://github.com/stefan-loewe/WinBinder/ "WinBinder") extension in some non-trivial application.

  Files folder image Files  
File Role Description
Files folder imagedist (1 directory)
Files folder imagesource (1 directory)
Accessible without login Plain text file bootstrap.php Aux. main boot strapping file
Accessible without login Plain text file composer.json Data for dowloading dependencies
Accessible without login Plain text file LICENSE.md Data license file
Accessible without login Plain text file README.md Doc. read me file

  Files folder image Files  /  dist  
File Role Description
Files folder imageBattMan (1 file)

  Files folder image Files  /  dist  /  BattMan  
File Role Description
  Accessible without login Plain text file php_wine Data allows running this app with wine under Linux - of course, battery readings do not work, as they depend on Windows system files, but app is running, which is good enough for demo purpose

  Files folder image Files  /  source  
File Role Description
Files folder imagews (1 directory)

  Files folder image Files  /  source  /  ws  
File Role Description
Files folder imageloewe (1 directory)

  Files folder image Files  /  source  /  ws  /  loewe  
File Role Description
Files folder imageBattMan (3 directories)

  Files folder image Files  /  source  /  ws  /  loewe  /  BattMan  
File Role Description
Files folder imageApp (1 file)
Files folder imageModel (3 files)
Files folder imageView (5 files)

  Files folder image Files  /  source  /  ws  /  loewe  /  BattMan  /  App  
File Role Description
  Plain text file BattManApplication.php Class Class source

  Files folder image Files  /  source  /  ws  /  loewe  /  BattMan  /  Model  
File Role Description
  Plain text file BatteryState.php Class Class source
  Plain text file Model.php Class Class source
  Plain text file SystemPowerStatus.php Class Class source

  Files folder image Files  /  source  /  ws  /  loewe  /  BattMan  /  View  
File Role Description
  Plain text file ControlView.php Class Class source
  Plain text file GraphView.php Class Class source
  Plain text file LogView.php Class Class source
  Plain text file TextView.php Class Class source
  Plain text file View.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:759
This week:0
All time:4,439
This week:114Up
 User Ratings  
 
 All time
Utility:50%StarStarStar
Consistency:58%StarStarStar
Documentation:58%StarStarStar
Examples:-
Tests:-
Videos:-
Overall:36%StarStar
Rank:3967