This class Lib help you to construct the rectangles using various logical operations such as Union, Intersect and Subtract. It will generate the border edges of non-overlapped rectangles.
Full Changelog: https://github.com/winaungcho/PHP-RECTSLIB/commits/v-1.0