PHP code example of aedart / model
1. Go to this page and download the library: Download aedart/model 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/ */
aedart / model example snippets
namespace Acme\Contracts;
use Aedart\Model\Contracts\Integers\IdAware;
use Aedart\Model\Contracts\Strings\DescriptionAware;
use Aedart\Model\Contracts\Strings\NameAware;
interface Person extends
IdAware,
NameAware,
DescriptionAware
{
}
namespace Acme\Models;
use Acme\Contracts\Person as PersonInterface;
use Aedart\Model\Traits\Strings\DescriptionTrait;
use Aedart\Model\Traits\Strings\IdTrait;
use Aedart\Model\Traits\Strings\NameTrait;
class Person implements PersonInterface
{
use IdTrait;
use NameTrait;
use DescriptionTrait;
}