Setting Configuration Options for PHP Library (the right way)
Hello.
I would like to include Cloudinary's PHP library (http://cloudinary.com/documentation/php_integration#getting_started_guide) in my Laravel 5.1 project. I am new to PHP and Laravel and am still trying to figure everything out. I see that I can set the various configuration options on the fly every time I call a function from the library, but I'd like to know the "correct" way to configure this library with Laravel. It seems like I should be able to set some of these configuration options somewhere else in my Laravel project so that when I call the method, all the options are already set (similar to the way configuration options for other aspects of Laravel are set in the files in the config directory).
Thanks for your help. That makes sense. It's too bad that won't really save my application any complexity as I'm still setting those options each time I have to use Cloudinary. I was really wondering if there was a way within Laravel that I could set these options and just have that configuration be set automatically should I call any Cloudinary functions (it seems like such a path would be consistent with the overall structure of Laravel). It is possible there isn't really a way to do what I'm thinking.