PHP code example of arokettu / date-doctrine

1. Go to this page and download the library: Download arokettu/date-doctrine 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/ */

    

arokettu / date-doctrine example snippets




use Arokettu\Date\Date;
use Doctrine\ORM\Mapping\{Column,Table};

#[Entity, Table(name: 'date_object')]
class DateObject
{
    #[Column(type: DateType::NAME)]
    public Date $date;
}