PHPackages                             bodakyuriy/ipstorage - 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. bodakyuriy/ipstorage

ActiveLibrary

bodakyuriy/ipstorage
====================

IP Storage

021PHP

Since Oct 16Pushed 7y ago1 watchersCompare

[ Source](https://github.com/BodakYura/IPStorage)[ Packagist](https://packagist.org/packages/bodakyuriy/ipstorage)[ RSS](/packages/bodakyuriy-ipstorage/feed)WikiDiscussions develop Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

IPStorage
=========

[](#ipstorage)

Small flexible library for stored ip address.

Install
-------

[](#install)

Via Composer

```
$ composer require bodakyuriy/ipstorage:dev-develop
```

Documentation
-------------

[](#documentation)

#### Basic usage of `ipstorage` client

[](#basic-usage-of-ipstorage-client)

```
    use IPStorage\IPStorage;
    use IPStorage\Drivers\PDODriver\Driver\PDODriver;

    //Create instance of IPStorage
    $ipStorage = new IPStorage();

    //Create instance of storage driver from box PDODriver
    $storageDriver = new PDODriver('sqlite:ip_store.sqlite3');

    /**
     * Set storage driver to IPStore  which it will use for stored ip addresses.
     * You can set your drivers which implements StorageDriverInterface
     */
    $ipStorage->driver($storageDriver);

    //Store IP address and return count of stored
    $ipStorage->add('127.0.0.1');

    //Return count of stored
    $ipStorage->getCount('127.0.0.1');
```

#### Optionally usage of `ipstorage` client

[](#optionally-usage-of-ipstorage-client)

```
    use IPStorage\IPStorage;
    use IPStorage\Drivers\PDODriver\Driver\PDODriver;

    //Create instance of IPStorage
    $ipStorage = new IPStorage();

    /**
     * Library use default ip validator but you can replace it your own validator which implemens ValidatorInteraface
     */
     $ipStorage->validator($validator);
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/27aa49f3befb1ac8d242d7601bb91c436d0d941016de0e77cf81fbf164f71988?d=identicon)[bodakyuriy](/maintainers/bodakyuriy)

---

Top Contributors

[![BodakYura](https://avatars.githubusercontent.com/u/3406646?v=4)](https://github.com/BodakYura "BodakYura (23 commits)")[![ikramnyuk](https://avatars.githubusercontent.com/u/20616527?v=4)](https://github.com/ikramnyuk "ikramnyuk (1 commits)")

### Embed Badge

![Health badge](/badges/bodakyuriy-ipstorage/health.svg)

```
[![Health](https://phpackages.com/badges/bodakyuriy-ipstorage/health.svg)](https://phpackages.com/packages/bodakyuriy-ipstorage)
```

PHPackages © 2026

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