jaizendra-netizen / objection-handling-report
PHP CLI and library: count the sales objections in a CSV you labelled, and show per objection who handled it (agent, human or nobody) and how often the conversation went on.
Package info
github.com/jaizendra-netizen/objection-handling-report
Type:project
pkg:composer/jaizendra-netizen/objection-handling-report
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-30 02:00:57 UTC
README
PHP command line tool and library. Give it a CSV with one row per sales objection that came up in a conversation, labelled by you (for example price or timing), together with who dealt with it (agent, human or none) and whether the conversation continued or ended. It counts your labels and shows, for each objection, how many times it came up, how many were handled by an agent, a human or nobody, the share handled by an agent and the share where the conversation went on. It classifies nothing itself and calls no AI service: the labels are yours, and so are the conclusions. Labels are matched without regard to case and the first spelling seen is shown. Objections are sorted by count (highest first, then by name). The overall lines cover every row: the share handled by an agent and the share left unhandled (none) are counted over all rows, and the objection with the most unhandled rows is named only when at least one row is unhandled (ties go to the earlier name). All percentages are rounded to 1 decimal. The numbers describe your file; a count of a few rows is not evidence of a pattern.
Part of the OneGTMLab free GTM tools. Background on the idea: AI sales agent.
Install
composer require jaizendra-netizen/objection-handling-report
Use
Input is a CSV with the columns conversation_id, objection, handled_by and outcome. Column names are matched without regard to case and may be in any order. handled_by is agent, human or none; outcome is continued or ended (both without regard to case). Option --min-count N (a whole number of 1 or more, default 1, set by you) hides objections seen fewer than N times from the list and says how many were hidden; the overall lines still count every row. The command stops at the first bad row and names it. A bad handled_by or outcome, an empty objection, a missing column, a row with the wrong number of cells, a file with no rows or a bad --min-count exits 1 with a message; an unreadable file, an unknown option or a missing argument exits 2.
$ php bin/objection-handling-report sample.csv
rows read: 12, objection labels: 4, minimum count: 1 (set by you)
Price: count 5, handled by agent 3, human 1, none 1, share handled by agent 60.0%, share where the conversation continued 40.0%
Timing: count 3, handled by agent 1, human 1, none 1, share handled by agent 33.3%, share where the conversation continued 66.7%
Authority: count 2, handled by agent 1, human 1, none 0, share handled by agent 50.0%, share where the conversation continued 100.0%
Competitor: count 2, handled by agent 0, human 0, none 2, share handled by agent 0.0%, share where the conversation continued 0.0%
overall (all rows): objections 12, share handled by agent 41.7%, share left unhandled 33.3%
most left unhandled: Competitor (2)
Test
php tests/run.php
Offline, no network calls, no dependencies beyond the language runtime. MIT licensed.