The following should work:
$product->getTypeInstance(true)->getChildrenIds($product->getId(), false)
The result is a multidimensional array with the top level being options, and the children are products.
In addition, you can change the false value to true, and it will return only the desired package parameters.
Lee saferite
source share