PHPackages                             sbwerewolf/fias-gar-data-import-tool - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. sbwerewolf/fias-gar-data-import-tool

ActiveTool[Database &amp; ORM](/categories/database)

sbwerewolf/fias-gar-data-import-tool
====================================

Tool to import FIAS GAR database

v1.0.4(1y ago)061MITPHP

Since Jan 26Pushed 1y ago2 watchersCompare

[ Source](https://github.com/SbWereWolf/fias-gar-data-import-tool)[ Packagist](https://packagist.org/packages/sbwerewolf/fias-gar-data-import-tool)[ RSS](/packages/sbwerewolf-fias-gar-data-import-tool/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (4)Versions (7)Used By (0)

FIAS GAR Data Import Tool
=========================

[](#fias-gar-data-import-tool)

Tool to import FIAS GAR database.

Федеральная Информационная Адресная Система Государственный Адресный Реестр - ФИАС ГАР

How to install
--------------

[](#how-to-install)

`composer require sbwerewolf/fias-gar-data-import-tool`

How to use
----------

[](#how-to-use)

Import may run in two modes:

- deploy data to empty database (SQL insert)
- import updates to working database (SQL update)

The behaviour of import command depends on `ImportOptions` DTO (data transfer object).

If `ImportOptions::$doAddNewWithCheck` is `false`, than import do not checks record existence, and straight off perform SQL INSERT.

In case when `ImportOptions::$doAddNewWithCheck` is `true`, before do INSERT/UPDATE, import checks record existence, and perform suitable operation.

For perform import, you first step is define `ImportOptions`, and then exec `\SbWereWolf\FiasGarDataImport\Cli\ImportCommand::run` with early defined options.

### Preliminary Steps

[](#preliminary-steps)

- Deploy database with Composer package `sbwerewolf/fias-gar-schema-deploy-tool`
- Create index, in common case on (region,id) columns

### Script `data-import.php` Is Example Of Using of Import Command

[](#script-data-importphp-is-example-of-using-of-import-command)

- Create .env file with DB credentials, and other parameters
- Copy-paste [test/data-import.php](test/data-import.php)
- Correct all paths into [test/data-import.php](test/data-import.php)
- Check file mask lists, remove unnecessary
- Run script [test/data-import.php](test/data-import.php)

Contacts
--------

[](#contacts)

```
Volkhin Nikolay
e-mail ulfnew@gmail.com
phone +7-902-272-65-35
Telegram @sbwerewolf

```

Chat with me via messenger

- [Telegram chat with me](https://t.me/SbWereWolf)
- [WhatsApp chat with me](https://wa.me/79022726535)

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance48

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~216 days

Total

5

Last Release

388d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/56415ea6aeceece7248ce372ec911905cab2cd1313ed2bb4ec8cfacdbaa7d08f?d=identicon)[SbWereWolf](/maintainers/SbWereWolf)

---

Top Contributors

[![SbWereWolf](https://avatars.githubusercontent.com/u/16444541?v=4)](https://github.com/SbWereWolf "SbWereWolf (6 commits)")[![Nazir](https://avatars.githubusercontent.com/u/7224191?v=4)](https://github.com/Nazir "Nazir (1 commits)")

---

Tags

fiasfias-databasephp

### Embed Badge

![Health badge](/badges/sbwerewolf-fias-gar-data-import-tool/health.svg)

```
[![Health](https://phpackages.com/badges/sbwerewolf-fias-gar-data-import-tool/health.svg)](https://phpackages.com/packages/sbwerewolf-fias-gar-data-import-tool)
```

###  Alternatives

[symfony/cache

Provides extended PSR-6, PSR-16 (and tags) implementations

4.2k373.5M3.3k](/packages/symfony-cache)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[cycle/database

DBAL, schema introspection, migration and pagination

71777.8k53](/packages/cycle-database)[api-platform/metadata

API Resource-oriented metadata attributes and factories

275.0M219](/packages/api-platform-metadata)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
