novuhq / novu-php

PHP SDK for Novu - The open-source notification infrastructure for engineers. :rocket:
https://docs.novu.co/sdks/php
MIT License
85 stars 23 forks source link

feat: add the ability for the baseUri to be passed when initializing the Novu sdk #30

Closed isaiahdahl closed 1 year ago

isaiahdahl commented 1 year ago

closes #29

This approach remains backward compatible because if you just pass a string as the ApiKey it will use it as it did before.

Having the option to pass in an array config leaves the flexibility for more configurable params to be passed in later on.

FYI: running composer lint changes like 40 files. It seem that hasn't been used as a part of the workflow so far so I opted not to run it to keep the PR simple.