Focus on the purpose of your application rather than be distracted by the mechanics. You can use API Platform to provide a rich featured, standards compliant API either in standalone mode or integrated with Symfony or Laravel. REST or GraphQL are available by default, but you can also customise it to suit your needs.