vide.me / datacraft
There is no license information available for the latest version (dev-master) of this package.
data crafting
dev-master
2024-03-16 06:49 UTC
Requires
- geoip2/geoip2: ~2.0
- predis/predis: v2.1.2
- vlucas/phpdotenv: 5.5.0
This package is auto-updated.
Last update: 2025-03-29 01:06:23 UTC
README
Example of programmer Sergei Kozlov
This example emulates the automatic increment of views in increments of 2 weeks to a month.
Work example
https://demo.sergeykozlov.ru/geo_chart/
To use this framework
Define API values.
$tm->setItemId('qwerty'); $tm->setCountShow(1234);
Run loops like in this example
$tm->foreachTM($tm->getDate1start(), $tm->getDate1stop(), $tm->getRiseCountShow()); $tm->foreachTM($tm->getDate2start(), $tm->getDate2stop(), $tm->getFallCountShow());
Displaying system messages
$log->getStaffMessage()
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();