PHP code example of aschaeffer / sonata-republicandate-field-bundle
1. Go to this page and download the library: Download aschaeffer/sonata-republicandate-field-bundle 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/ */
aschaeffer / sonata-republicandate-field-bundle example snippets
class User {
/**
* @ORM\Column(type="date", nullable=true)
*/
protected \DateTime $birthday;
/**
* @ORM\Column(type="string", nullable=true)
* @RepublicandateField(gregorianDate="birthday")
*/
protected string $birthdayRepublican;
}