PHPackages                             vide.me/datacraft - 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. vide.me/datacraft

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

vide.me/datacraft
=================

data crafting

030PHP

Since Mar 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/SergeyKozlov/datacraft)[ Packagist](https://packagist.org/packages/vide.me/datacraft)[ RSS](/packages/videme-datacraft/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Geo Chart automatic increment
=============================

[](#geo-chart-automatic-increment)

Example of programmer Sergei Kozlov

This example emulates the automatic increment of views in increments of 2 weeks to a month.

### Work example

[](#work-example)

[https://demo.sergeykozlov.ru/geo\_chart/](https://demo.sergeykozlov.ru/geo_chart/)

To use this framework
---------------------

[](#to-use-this-framework)

### Define API values.

[](#define-api-values)

$tm-&gt;setItemId('qwerty'); $tm-&gt;setCountShow(1234);

### Run loops like in this example

[](#run-loops-like-in-this-example)

[https://github.com/SergeyKozlov/geo\_chart/blob/158bd627656e0a447e92e241af61d0a812447388/system/cm/tm\_action/index.php](https://github.com/SergeyKozlov/geo_chart/blob/158bd627656e0a447e92e241af61d0a812447388/system/cm/tm_action/index.php)

$tm-&gt;foreachTM($tm-&gt;getDate1start(), $tm-&gt;getDate1stop(), $tm-&gt;getRiseCountShow()); $tm-&gt;foreachTM($tm-&gt;getDate2start(), $tm-&gt;getDate2stop(), $tm-&gt;getFallCountShow());

### Displaying system messages

[](#displaying-system-messages)

$log-&gt;getStaffMessage()

all API of TM class
-------------------

[](#all-api-of-tm-class)

```
    $this->setLuft(5);
    $this->setEvolutionMidlRangeMin(100);
    $this->setEvolutionMidlRangeMax(200);
    $this->setEvolutionHightyRangeMin(200);
    $this->setEvolutionHightyRangeMax(600);
    $this->setEvolutionHightyChance(5);
    $this->setEvolutionCriterion1(100);
    $this->setRisePercentShow(55);
    $this->setFallPercentShow(45);
    $this->setRisePercentShowHighty(65);
    $this->setFallPercentShowHighty(35);
    $this->setLuftPercentShow(10);
    $this->setRiseDaysMin(10); // 10 days
    $this->setRiseDaysMax(14); // 2 week
    $this->setRiseDaysMinHighty(14); // 2 week
    $this->setRiseDaysMaxHighty(28); // 3 week
    $this->setFallDaysMin(10); // 1 week
    $this->setFallDaysMax(28); // 3 week
    $this->setFallDaysMinHighty(28); // 3 week
    $this->setFallDaysMaxHighty(42); // 6 week
    $this->setCountLuftPercentMin(50);
    $this->setCountLuftPercentMax(150);
    $this->setCountJustNow(1);
    $this->setUsa(5);
    $this->setEu(7);
    $this->setAsia(9);
    $this->log = new log();

```

Result
------

[](#result)

[![Screenshot 2023-03-21 at 13-51-22 Vide me](https://user-images.githubusercontent.com/1781376/226585349-d31084d2-2201-4c1e-a4b8-5a5ac8525803.png)](https://user-images.githubusercontent.com/1781376/226585349-d31084d2-2201-4c1e-a4b8-5a5ac8525803.png)

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1bde081eeec63b5b7d5cc47cab6b69cfc423e0776380309b4154f55dbd7c120e?d=identicon)[SergeyKozlov](/maintainers/SergeyKozlov)

---

Top Contributors

[![SergeyKozlov](https://avatars.githubusercontent.com/u/1781376?v=4)](https://github.com/SergeyKozlov "SergeyKozlov (31 commits)")

### Embed Badge

![Health badge](/badges/videme-datacraft/health.svg)

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

PHPackages © 2026

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