{"id":40669495,"url":"https://github.com/gosuperscript/axiom-lookup","last_synced_at":"2026-01-21T09:30:53.282Z","repository":{"id":332145365,"uuid":"1101154436","full_name":"gosuperscript/axiom-lookup","owner":"gosuperscript","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-12T16:26:07.000Z","size":5590,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-12T21:58:05.586Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gosuperscript.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-21T09:16:58.000Z","updated_at":"2026-01-12T16:19:49.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gosuperscript/axiom-lookup","commit_stats":null,"previous_names":["gosuperscript/axiom-lookup"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/gosuperscript/axiom-lookup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gosuperscript%2Faxiom-lookup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gosuperscript%2Faxiom-lookup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gosuperscript%2Faxiom-lookup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gosuperscript%2Faxiom-lookup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gosuperscript","download_url":"https://codeload.github.com/gosuperscript/axiom-lookup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gosuperscript%2Faxiom-lookup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28631101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-21T09:30:50.299Z","updated_at":"2026-01-21T09:30:53.238Z","avatar_url":"https://github.com/gosuperscript.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lookup Resolver\n\nA high-performance PHP library for querying CSV/TSV files with streaming, dynamic filtering, aggregate functions, and range-based banding.\n\n## Features\n\n- **Memory-Efficient Streaming**: O(1) memory complexity - processes records one-at-a-time\n- **Seven Aggregate Functions**: `first`, `last`, `min`, `max`, `count`, `sum`, `avg`, `all`\n- **Explicit Filter API**: `ValueFilter` and `RangeFilter` for clear, self-documenting code\n- **Range-Based Banding**: Support for scenarios like tax brackets, premium tiers, shipping rates\n- **Dynamic Filter Resolution**: Use nested lookups and symbols as filter values\n- **Strongly-Typed Value Objects**: Enhanced type safety with immutable aggregates\n- **Early Exit Optimization**: `first` aggregate stops reading after first match (465x faster)\n- **PHP 8.4 Compatible**: Full compatibility with latest PHP features\n\n## Installation\n\n```bash\ncomposer require gosuperscript/axiom-lookup\n```\n\n## Quick Start\n\n```php\nuse Superscript\\Axiom\\Lookup\\{LookupSource, ValueFilter, StaticSource};\n\n// Simple lookup\n$lookup = new LookupSource(\n    filePath: '/data/products.csv',\n    filters: [new ValueFilter('category', new StaticSource('Electronics'))],\n    columns: 'price'\n);\n```\n\n## Requirements\n\n- PHP 8.4+\n- league/csv ^9.27.0\n- gosuperscript/monads\n\n## Documentation\n\nFor detailed documentation, examples, and API reference, see the main README.md file.\n\n## Testing\n\n```bash\ncomposer test          # Run all tests\ncomposer test:unit     # Run unit tests\ncomposer test:types    # Run static analysis\ncomposer test:infection # Run mutation tests\n```\n\n## Benchmarking\n\n```bash\ncomposer bench              # Run all benchmarks\ncomposer bench:aggregate    # Test aggregate functions\ncomposer bench:memory       # Test memory efficiency\n```\n\n## Performance Characteristics\n\n- **Memory**: ~6.86MB constant usage regardless of file size\n- **Early Exit**: First aggregate is 465x faster than full scan\n- **Scalability**: Linear time scaling with row count\n- **Validated**: Comprehensive benchmarks with files up to 100k rows\n\n## License\n\nProprietary\n\n## Credits\n\nDeveloped by GoSuperscript\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgosuperscript%2Faxiom-lookup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgosuperscript%2Faxiom-lookup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgosuperscript%2Faxiom-lookup/lists"}