Removing dependancy on Laravel framework