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(11mo ago)061MITPHP

Since Jan 26Pushed 11mo 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 1mo 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

33

—

LowBetter than 75% of packages

Maintenance52

Moderate activity, may be stable

Popularity10

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

342d 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

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k578.4M5.6k](/packages/doctrine-dbal)[cycle/database

DBAL, schema introspection, migration and pagination

64690.9k31](/packages/cycle-database)[guikingone/scheduler-bundle

A Symfony bundle that allows to schedule and create repetitive tasks

114217.4k](/packages/guikingone-scheduler-bundle)[symfony/ai-store

Low-level abstraction for storing and retrieving documents in a vector store.

19292.4k53](/packages/symfony-ai-store)[tommyknocker/pdo-database-class

Framework-agnostic PHP database library with unified API for MySQL, MariaDB, PostgreSQL, SQLite, MSSQL, and Oracle. Query Builder, caching, sharding, window functions, CTEs, JSON, migrations, ActiveRecord, CLI tools, AI-powered analysis. Zero external dependencies.

845.7k](/packages/tommyknocker-pdo-database-class)[bartlett/php-compatinfo-db

Reference Database of all functions, constants, classes, interfaces on PHP standard distribution and about 110 extensions

1183.0k1](/packages/bartlett-php-compatinfo-db)

PHPackages © 2026

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