Pisinger is one of the few academics who posts working code. In one of his papers he mentions the "Minimum Depth" problem.
Here is a practical and efficient algorithm for 3D Rectangular Box Packing that adjusts the height of the enclosing box.
And here is an implementation in php.