1. Go to this page and download the library: Download npub/gos 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/ */
npub / gos example snippets
use Doctrine\DBAL\Types\Type;
use Npub\Gos\Doctrine\Type\SnilsCanonicalType;
use Npub\Gos\Doctrine\Type\SnilsType;
Type::addType('snils', SnilsType::class);
Type::addType('snils_canonical', SnilsCanonicalType::class);
# Entity/Person.php
use Doctrine\ORM\Mapping as ORM;
use Npub\Gos\Doctrine\Trait\Snilsable;
/**
* @ORM\Entity
*/
class Person
{
use Snilsable;
…
}