PHP Classes

Access Pattern Counter: Count page accesses and show the count in HTML

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 37%Total: 1,562 All time: 2,527 This week: 99Up
Version License Categories
accesspatterncounter 1.0GNU General Publi...Statistics, User Management


This package is meant to keep track of the count of users access to the pages of a site. The counter class can also output the current access count in an HTML table.

Page accesses are considered by the remote user computer IP address only if sufficient time has passed, by default one hour. During this access window, a count is kept of the accesses to the page by a specific ip address.

This allows possible detection of denial of service attacks by keeping data useful for tracking access patterns by specific hosts.

All data is kept in a MySQL database.

This class is officially compatible with PHP 5.

Picture of Richard Munroe
Name: Richard Munroe is available for providing paid consulting. Contact Richard Munroe .
Classes: 22 packages by
Country: United States United States
Age: 73
All time rank: 112 in United States United States
Week rank: 73 Down7 in United States United States Down
Innovation award
Innovation award
Nominee: 3x

Winner: 1x

  Files folder image Files  
File Role Description
Plain text file class.counter.php Class Class interface for page counter
Plain text file class.counterUser.php Class Access pattern counter class
Accessible without login Plain text file counter.example.php Example Example of counter class usage
Accessible without login Plain text file counter.sql Data Create MySQL tables 4KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
DB Download .zip .tar.gz SQLData Required
 Version Control Unique User Downloads Download Rankings  
This week:0
All time:2,527
This week:99Up
 User Ratings  
 All time