PHP code example of alzpk / value-objects
1. Go to this page and download the library: Download alzpk/value-objects 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/ */
alzpk / value-objects example snippets
$name = new Alzpk\ValueObjets\Name('John', 'Doe');
$name->getFirstname(); // Returns "John"
$name->getLastname(); // Returns "Doe"
$name->getFullName(); // Returns "John Doe"
json
{
"php": "^7.4"
}