defyma / nine-grid-classification
Implement 9 Grid Classification
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:helper
This package is auto-updated.
Last update: 2025-07-28 18:46:25 UTC
README
Simple helper for implement 9 Grid Classification.
Example case for 9-Grid Tallent Management
Install:
composer require defyma/nine-grid-classification
Usage:
...
$_9Grid = new \defyma\helper\NineGridClassification();
$_9Grid->setPoint($X, $Y, $X1, $X2, $Y1, $Y2);
$classification = $_9Grid->calculate($scoreX, $scoreY);
...
Example:
...
$_9Grid = new \defyma\helper\NineGridClassification();
$_9Grid->setPoint(6,6);
$classification = $_9Grid->calculate(1, 5);
echo $classification; \\ 7
...
...
$_9Grid = new \defyma\helper\NineGridClassification();
$_9Grid->setPoin(6,6,4,5,3,5);
$classification = $_9Grid->calculate(1, 5);
echo $classification; \\ 4
...
API:
setPoin
$X
is Axis X | required$Y
is Axis Y | required$X1
is Point X1$X2
is Point X2$Y1
is Point Y1$Y2
is Point Y2
calculate
$scoreX
is score Y | required$scoreY
is score Y | required