certegroep/symfony-jira-issue-notifier
composer require vendor/package-name
use Vendor\PackageName\Facades\PackageName; // or use Vendor\PackageName\PackageName;
$result = PackageName::execute(['custom_option' => 'value']);
README.md for the supported custom options section to understand available configurations.Configuration:
config('package-name') helper to set global defaults in config/package-name.php.PackageName::execute(['option' => 'value'])).Service Provider Integration:
AppServiceProvider:
$this->app->singleton('package-name', function ($app) {
return new \Vendor\PackageName\PackageName($app['config']['package-name']);
});
Artisan Commands:
Event Listeners:
PackageName\Events\JobCompleted).Testing:
$this->partialMock(\Vendor\PackageName\PackageName::class, ['execute']);
Custom Options:
supported custom options list in the release notes.PackageName::getSupportedOptions() (if available) to dynamically fetch valid keys:
$validOptions = PackageName::getSupportedOptions();
Configuration Overrides:
config/package-name.php are merged with method parameters. Unexpected behavior may occur if defaults are not explicitly set.array_merge() to debug overrides:
$finalConfig = array_merge(config('package-name'), ['custom_option' => 'value']);
Dependency Injection:
public function __construct(private PackageName $package) {}
Performance:
$cacheKey = md5(serialize($options));
return Cache::remember($cacheKey, now()->addHours(1), function () use ($options) {
return PackageName::execute($options);
});
Debugging:
'debug' => true in the config or passing ['debug' => true] to methods.PackageName\Exceptions\* classes for error handling.How can I help you explore Laravel packages today?