PHPackages                             carlosjfc/geometric-shapes - 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. carlosjfc/geometric-shapes

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

carlosjfc/geometric-shapes
==========================

PHP library for defining 2-dimensional geometric shapes and making basic calculations with them.

1.0.0(9y ago)115MITPHPPHP ^7.0

Since Jan 9Pushed 9y ago1 watchersCompare

[ Source](https://github.com/carlosjfc/geometricShapes)[ Packagist](https://packagist.org/packages/carlosjfc/geometric-shapes)[ RSS](/packages/carlosjfc-geometric-shapes/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

This is a simple Object Oriented PHP library for defining 2-dimensional geometric shapes and making basic calculations with them. The following shapes are Implemented:

- Circle
- Triangle
- Right Triangle
- Equilateral Triangle
- Parallelogram
- Rectangle
- Square

For each shape, the library is able to do the following:

- calculate the area.
- calculate the perimeter.
- proportionally resize the shape up or down, given a floating-point scale factor scale.

This library is also a PSR-4 package. You can find it on Packagist () under the name and include it with composer.

If you want to be a contributor you can clone the repository and open a new branch to implement changes. When ready create a PR (Pull Request), then once is approve you can merge in the development branch.

Continuous integration is used to make builds, so we warranty that your new contributions doesn't brake the source code. We ask you as a contributor to follow PSR-4 standard, don't change the current test cases, whoever we encourage you to implement test cases for each new functionality that you implement.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3459d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1022647?v=4)[Carlos Fernandez](/maintainers/carlosjfc)[@carlosjfc](https://github.com/carlosjfc)

---

Top Contributors

[![carlosjfc](https://avatars.githubusercontent.com/u/1022647?v=4)](https://github.com/carlosjfc "carlosjfc (5 commits)")

---

Tags

shapesgemoetricgeometric shapes2-dimensional geometric shapes

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/carlosjfc-geometric-shapes/health.svg)

```
[![Health](https://phpackages.com/badges/carlosjfc-geometric-shapes/health.svg)](https://phpackages.com/packages/carlosjfc-geometric-shapes)
```

###  Alternatives

[hubertusanton/silverstripe-seo

SEO module for Silverstripe

4523.1k2](/packages/hubertusanton-silverstripe-seo)[jakewhiteley/php-sets

An implementation of a Java-like Set data structure for PHP. A Set is an iterable data structure which allows strict-type storage of unique values.

1828.2k](/packages/jakewhiteley-php-sets)

PHPackages © 2026

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