hexlet / points
Points implementation
v2.0.0
2026-08-18 00:35 UTC
Requires
- php: >=8.5
Requires (Dev)
- phpunit/phpunit: ^13.3
- squizlabs/php_codesniffer: ^4.0
This package is auto-updated.
Last update: 2026-08-18 00:35:44 UTC
README
Functions for working with Points
<?php use function Php\Points\Points\makePoint; use function Php\Points\Points\getX; use function Php\Points\Points\getY; use function Php\Points\Points\toString;
Examples
<?php $point = makePoint(1, 2); $x = getX($point); // $x = 1; $y = getY($point) // $y = 2; $example = toString($point); // $example = "(1, 2)";
This repository is created and maintained by the team and the community of Hexlet, an educational project. Read more about Hexlet.
See most active contributors on hexlet-friends.
