1. Go to this page and download the library: Download incoder/laravel-ddd 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/ */
incoder / laravel-ddd example snippets
use Incoder\DDD\Domain\Entities\Entity;
use Incoder\DDD\Support\Attributes\FillableAttribute;
class Department extends Entity
{
protected $table = 'departments';
public $incrementing = true;
protected $keyType = 'int';
#[FillableAttribute]
protected string $name;
}
use Incoder\DDD\Support\Attributes\RouteAttribute;
#[RouteAttribute(methods: ['GET'], uri: '/reports', name: 'reports.index')]
public function index()
{
}