PHP code example of manuelluvuvamo / laravel-bug-courier
1. Go to this page and download the library: Download manuelluvuvamo/laravel-bug-courier library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
manuelluvuvamo / laravel-bug-courier example snippets
use ManuelLuvuvamo\BugCourier\Application\Services\Item\CreateItemService;
use ManuelLuvuvamo\BugCourier\Application\Services\Item\CreateItemDto;
$service = app(CreateItemService::class);
$data = new CreateItemDto(
'Bug Title',
'Bug Description',
['key' => 'value'],
'open'
);
$service->execute($data);
use ManuelLuvuvamo\BugCourier\Infra\Item\ItemGithubRepository;
$repository = app(ItemGithubRepository::class);
$repository->save($data);
use ManuelLuvuvamo\BugCourier\Application\Services\Item\CreateItemService;
use ManuelLuvuvamo\BugCourier\Application\Services\Item\CreateItemDto;
$data = new CreateItemDto('Bug in checkout process', 'Description of the issue', ['module' => 'checkout'], 'open');
$service = app(CreateItemService::class);
$service->execute($data);
use ManuelLuvuvamo\BugCourier\Application\Services\Item\CreateItemService;
use ManuelLuvuvamo\BugCourier\Application\Services\Item\CreateItemDto;
$data = new CreateItemDto('Database connection error', 'Timeout issue', ['server' => 'db01'], 'open');
$service = app(CreateItemService::class);
$service->execute($data);