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 2mo 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 22% 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

1934d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/be8b694472ed3efc0107dc1ac9d846965fff5b4d54dffe9b692db4e6f5ccd36b?d=identicon)[dmykos](/maintainers/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

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)[sulu/sulu

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

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[leapt/core-bundle

Symfony LeaptCoreBundle

2529.1k4](/packages/leapt-core-bundle)

PHPackages © 2026

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