Sorry to bump my own question, any idea on best practice with this situation?
Need an opinion: Include Laravel package in my package or make my own implementation?
Hello!
Need some opinions! I'm creating an API package similar to something like Dingo/api except for a bit lighter.
I've created many APIs etc the past couple of years and I've developed my own set of tools for it, and I thought I would make it available so I'm rewriting some of it as a proper package now.
One portion of it uses laravel-fractal the great package here from spatie: https://github.com/spatie/laravel-fractal
I'm wondering if I should include that as a dependency in my package and register the service provider for it in my own service provider etc? Or should I make my package more generic and implement my own Fractal provider/service ?
I really like laravel-fractal and the extra goodies it already provides, but I want registering my service provider to be easy as possible, and I also like the idea of people being able to use whatever phpleague/fractal package they want (for example for a project that already uses fractal and is adding my package on top of it).
Might be a silly question but I appreciate any feedback and which route I should take. Thanks!
Please or to participate in this conversation.