We present a digital controller specially designed for laser frequency stabilization in the application of inter-satellite laser ranging. The prototype of controller is developed using field programmable gate arrays programmed with National Instruments LabVIEW software. The controller is flexible, self-analyzing, and easily optimized with build-in system analysis. Application and performance of the controller to a laser frequency stabilization system designed for spaceborne scientific missions are demonstrated.