Getting started with Flow.apex
Installation
Flow.apex has a dependency on R.apex and Script.apex.
Please install these first.
Include Flow.cls, and FlowTest.cls(optional) into your Org, and you are ready to go.
If you want to use Func Package, please include FlowPackage.cls. You can check more on R.apex.