PHPackages                             libcast/influx-php - 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. libcast/influx-php

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

libcast/influx-php
==================

Simple client for InfluxDB

v0.8.2(10y ago)16.7kBSD-4-ClausePHP

Since Apr 5Pushed 10y ago1 watchersCompare

[ Source](https://github.com/KevenLibcast/InfluxPHP)[ Packagist](https://packagist.org/packages/libcast/influx-php)[ RSS](/packages/libcast-influx-php/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

InfluxDB [![Build Status](https://camo.githubusercontent.com/6e38493c3893ae6ec728bc4c9c9a442c75e7bb54d85cc6b09edd0b4d37bd116b/68747470733a2f2f7472617669732d63692e6f72672f63726f6461732f496e666c75785048502e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/crodas/InfluxPHP)
========================================================================================================================================================================================================================================================================================

[](#influxdb-)

Simple PHP client for [InfluxDB](http://influxdb.org/), an open-source, distributed, time series, events, and metrics database with no external dependencies.

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

[](#how-to-install-it)

The easiest way is to install it via [composer](http://getcomposer.org)

```
composer require crodas/influx-php:\*
```

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

[](#how-to-use-it)

You need to create a client object.

```
$client = new \crodas\InfluxPHP\Client(
   "localhost" /*default*/,
   8086 /* default */,
   "root" /* by default */,
   "root" /* by default */
);
```

The first time you should create an database.

```
$db = $client->createDatabase("foobar");
$db->createUser("foo", "bar"); // foobar;
$db->insert("some label", ['foobar' => 'bar']); // single input
$db->insert("some label", [
    ['foobar' => 'bar'],
    ['foobar' => 'foo'],
]); // multiple input, this is better :-)
```

Now you can get the database object and start querying.

```
$db = $client->foobar;
// OR
$db = $client->getDatabase("foobar");

foreach ($db->query("SELECT * FROM foo;") as $row) {
    var_dump($row, $row->time);
}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

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

3692d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0a7bb40b10c867ab8d3855ea0614d59a1751cd8d5544266e3a84fd433b2be651?d=identicon)[libcast](/maintainers/libcast)

---

Top Contributors

[![crodas](https://avatars.githubusercontent.com/u/36463?v=4)](https://github.com/crodas "crodas (33 commits)")[![geschke](https://avatars.githubusercontent.com/u/272754?v=4)](https://github.com/geschke "geschke (9 commits)")[![KevenLibcast](https://avatars.githubusercontent.com/u/5191235?v=4)](https://github.com/KevenLibcast "KevenLibcast (8 commits)")[![supertowers](https://avatars.githubusercontent.com/u/882123?v=4)](https://github.com/supertowers "supertowers (2 commits)")[![hvt](https://avatars.githubusercontent.com/u/337754?v=4)](https://github.com/hvt "hvt (1 commits)")

### Embed Badge

![Health badge](/badges/libcast-influx-php/health.svg)

```
[![Health](https://phpackages.com/badges/libcast-influx-php/health.svg)](https://phpackages.com/packages/libcast-influx-php)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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