PHP code example of mapado / pretty-types
1. Go to this page and download the library: Download mapado/pretty-types 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/ */
mapado / pretty-types example snippets
/**
* ...
*
* @ORM\Column(name="column_name", type="json_pretty")
*/
#[ORM\Column]
private \DateTime $someDate;
#[ORM\Column]
private \DateTimeImmutable $someDate;
#[ORM\Column(type: 'utcdatetime')]
private \DateTime $someDate;
#[ORM\Column(type: 'utc_datetime_immutable')]
private \DateTimeImmutable $someDate;