This blog post references https://github.com/juj/RectangleBinPack/blob/master/Rectangl... ( and implicitly https://github.com/juj/RectangleBinPack/ ) as it's primary source.
The README even mentions the guillotine algorithm / method that someone else posted (not the same link, but the same method).