PHP code example of laraditz / dto
1. Go to this page and download the library: Download laraditz/dto 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/ */
laraditz / dto example snippets
'providers' => [
...
Laraditz\DTO\DTOServiceProvider::class,
...
],
...
$app->register(Laraditz\DTO\DTOServiceProvider::class);
...
namespace App\DTO;
use Laraditz\DTO\DTO;
class PostData extends DTO
{
public $title;
public $content;
}