In this paper, we analyze the inflationary cosmology using string field theory. This is done by using the zero level contribution from string field theory, which is a non-local tachyonic action. We will use the non-local Friedmann equations for this model based on string field theory, and calculate the slow-roll parameters for this model. We will then explicitly obtain the scalar and tensorial power spectrum, their related indices, and the tensor-to-scalar ratio for this model. Finally, we use cosmological data from Planck 2013 to 2018 to constrain the free parameters in this model and find that string field theory is compatible with them.