PHPackages                             dmykos/ip-store-bundle - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. dmykos/ip-store-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

dmykos/ip-store-bundle
======================

Ip Store Bundle

2.0.1(5y ago)011MITPHPPHP ^7.1.3

Since Jan 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/dmykos/IpStoreBundle)[ Packagist](https://packagist.org/packages/dmykos/ip-store-bundle)[ RSS](/packages/dmykos-ip-store-bundle/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (6)Versions (3)Used By (0)

IpStoreBundle!
==============

[](#ipstorebundle)

IpStoreBundle is used for storing and querying IP addresses (IPv4 and IPv6).

Application is built to support different store drivers. The supported store drivers are:

1. Database store – this driver runs with PDO and able to store data in a defined row of a defined table.

The application can be called on different interfaces so it can be integrated into different systems

Supported interfaces:

1. REST interface based on json

Install the package with:

```
composer require dmykos/ip-store-bundle
```

If you're *not* using Symfony Flex, you'll also need to enable the `Dmykos\IpStoreBundle\DmykosIpStoreBundle`in your `bundles.php` file.

Usage
-----

[](#usage)

To add ip address:

example.com/ip/add/255.255.255.0

To show haw many times ip added:

example.com/ip/query/255.255.255.0

Configuration
-------------

[](#configuration)

To use bundle with Database store you should configure database connection with Doctrine and configure IpStoreBundle directly by creating a new `config/packages/ip_store.yaml` file. The example values are:

```
# config/packages/ip_store.yaml
dmykos_ip_store:
    store_driver: dmykos_ip_store.database_store_driver
    database:
      table_name: stores
      id_column_name: store_name
      id_column_value: ip
      key_column_name: store_value
```

Specified above table name with id\_column\_name and key\_column\_name should already exist in database.

Example:

```
// src/Entity/Stores.php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity(repositoryClass="App\Repository\StoresRepository")
 */
class Stores
{
    /**
     * @ORM\Id()
     * @ORM\GeneratedValue()
     * @ORM\Column(type="integer")
     */
    private $id;

    /**
     * @ORM\Column(type="string", unique=true, length=255)
     */
    private $store_name;

    /**
     * @ORM\Column(type="text", length=65535, nullable=true)
     */
    private $store_value;

    public function getId(): ?int
    {
        return $this->id;
    }

    public function getStoreName(): ?string
    {
        return $this->store_name;
    }

    public function setStoreName(string $store_name): self
    {
        $this->store_name = $store_name;

        return $this;
    }

    public function getStoreValue(): ?string
    {
        return $this->store_value;
    }

    public function setStoreValue(string $store_value): self
    {
        $this->store_value = $store_value;

        return $this;
    }
}
```

Also create new `config/routes/ip_store.yaml` file, to configure Api Controller routes:

```
_ip_store:
  resource: '@DmykosIpStoreBundle/Resources/config/routes.xml'
  prefix: '/ip'
```

Extending the IpStoreBundle
---------------------------

[](#extending-the-ipstorebundle)

Instead of using DatabaseStoreDriver, you can create your own StoreDriver implementation:

```
# config/packages/ip_store.yaml
dmykos_ip_store:
    store_driver: App\Service\DummyStoreDriver
```

```
//src/Service/DummyStoreDriver.php

namespace App\Service;

use Dmykos\IpStoreBundle\Entity\IpModel;
use Dmykos\IpStoreBundle\StoreDriverInterface;

class DummyStoreDriver implements StoreDriverInterface
{

    public function add( IpModel $ipModel ): int {
        return 1000;
    }

    public function query( IpModel $ipModel ): int {
        return 100;
    }
}
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1986d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9381137?v=4)[dmykos](/maintainers/dmykos)[@dmykos](https://github.com/dmykos)

---

Top Contributors

[![dmykos](https://avatars.githubusercontent.com/u/9381137?v=4)](https://github.com/dmykos "dmykos (20 commits)")

### Embed Badge

![Health badge](/badges/dmykos-ip-store-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/dmykos-ip-store-bundle/health.svg)](https://phpackages.com/packages/dmykos-ip-store-bundle)
```

###  Alternatives

[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[kimai/kimai

Kimai - Time Tracking

4.8k8.7k1](/packages/kimai-kimai)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9317.2k55](/packages/open-dxp-opendxp)

PHPackages © 2026

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