jaizendra-netizen / average-contract-value-calc
PHP CLI and library: average contract value (mean and median) from a contracts CSV, overall and by segment, with multi-year deals normalised to a yearly figure.
Package info
github.com/jaizendra-netizen/average-contract-value-calc
Type:project
pkg:composer/jaizendra-netizen/average-contract-value-calc
Requires
- php: >=8.1
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-11-29 11:26:52 UTC
README
A PHP command-line tool and library for average contract value (ACV): the mean and median yearly value of your contracts, overall and by segment. A multi-year deal can be given as total value and term in months and is normalised to a yearly figure. Offline, no dependencies. Built by OneGTMLab (GTM engineering for B2B teams).
composer require jaizendra-netizen/average-contract-value-calc
customer,annual_value,segment,total_value,term_months a,12000,smb,, b,"24,000",smb,, c,,mid,90000,36 d,60000,mid,,
vendor/bin/acv contracts.csv # contracts 4, total 126,000, ACV 31,500, median 27,000 # mid 2 contracts ACV 45,000 # smb 2 contracts ACV 18,000
The median sits beside the mean because one very large contract pulls the mean up. See the ACV glossary entry.
Test
php tests/run.php