ahmadbadpey's avatar

Which use to create APIs, built-in laravel 5.3 features or dingo ?

I'm really new in API developing but I developed many websites before using Laravel.(and PHP)

Now I want to create my first API that can respond to any kind of clients like Android , iOS or an Angular powered Application.

I've done a lot of research in this case that How can I make an API via laravel.

I found that there is a package named dingo/api that simplifies and provide requirements to create flexible APIs.

And in the other hand, in last version of Laravel (5.3) added new features that help to create APIs like Passport.

But I am confused and do not know which are best approach.

Whether the use of Laravel in this case alone is enough? or will I surely need Dingo?

0 likes
8 replies
willvincent's avatar

Is laravel alone enough? Yes, certainly.

Dingo might save you some work, but it's definitely not necessary.

gandra404's avatar

This reply from https://github.com/dingo/api/issues/1189add some value to discussion:

I am not so sure this is true. It depends very much on your use case. Passport for example is very focused on having other people build applications for your API, which might not be what your use-case is.

Also I do not think Laravel comes with any kind of Transformers, does it?

Please or to participate in this conversation.