PHP code example of liquetsoft / fias-symfony
1. Go to this page and download the library: Download liquetsoft/fias-symfony 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/ */
liquetsoft / fias-symfony example snippets
// src/Entity/AddressObject.php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Liquetsoft\Fias\Symfony\LiquetsoftFiasBundle\Entity\AddrObj as LiquetsoftAddrObj;
use App\Repository\AddressObjectRepository;
/**
* Адреса.
*/
#[ORM\Entity(repositoryClass: AddressObjectRepository::class)]
class AddrObj extends LiquetsoftAddrObj
{
}
// src/Entity/FiasVersion.php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Liquetsoft\Fias\Symfony\LiquetsoftFiasBundle\Entity\FiasVersion as LiquetsoftFiasVersion;
/**
* Сущность, которая хранит текущую версию ФИАС.
*/
#[ORM\Entity()]
class FiasVersion extends LiquetsoftFiasVersion
{
}