1. Go to this page and download the library: Download pepperfm/ssd-for-laravel 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/ */
pepperfm / ssd-for-laravel example snippets
class ResponseWrapperDto extends BaseDto
{
public array $data;
public array $links;
public array $metaData;
}
use Pepperfm\DonationAlerts\Attributes\ToIterable;
class ResponseWrapperDto extends BaseDto
{
#[ToIterable(ResponseDataDto::class)]
public array $data;
public array $links;
public array $metaData;
}
use Pepperfm\DonationAlerts\Attributes\ToIterable;
class ResponseWrapperDto extends BaseDto
{
#[ToIterable(ResponseDataDto::class, \Illuminate\Database\Eloquent\Collection::class)]
public \Illuminate\Support\Collection $data;
public array $links;
public array $metaData;
}