There is a newer version of this page. You can find it here.
Hardware
This library supports currently only the rotary encoder KY040. But it should support more in the future.
Usage
The exact usage of the driver depends on the hardware and the implementation of the driver. As this varies a bit, every driver has its own documentation.