PHP Classes

PHP Touch Swipe Emulator: Track swipe events when user moves the mouse

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 98 All time: 9,759 This week: 182Up
Version License PHP version Categories
swiper 0.1Public Domain5HTML, PHP 5


This class can be used to track swipe events when user uses the mouse.

It generate HTML attributes for a given HTML element that will track mouse over and mouse out events and redirect to a specific URL.

The URL is of the current page but takes parameters that determine the direction of the swipe events (left, right, up, down), as well the identifier of the page element on which the swipe events happened.

Innovation Award
PHP Programming Innovation award nominee
December 2016
Number 6
Swipe movements are usually performed by users of touch devices. However, if a site is accessed from a computer device without a touch screen, it is not be possible to detect swipe movements performed with the mouse directly.

This class provides means to emulate the detection of swipe movements performed with the mouse. It generates JavaScript to perform the movement detection and then sends HTTP requests to the server side to notify about the detected movements.

Manuel Lemos
Picture of Dave Smith
  Performance   Level  
Name: Dave Smith is available for providing paid consulting. Contact Dave Smith .
Classes: 51 packages by
Country: United States United States
Age: 58
All time rank: 618 in United States United States
Week rank: 21 Up3 in United States United States Up
Innovation award
Innovation award
Nominee: 32x

Winner: 7x

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Usage Example
Plain text file swiper.class.php Class Main Class

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:9,759
This week:182Up