ratespecial/credit-agency-rent
Composer 安装命令:
composer require ratespecial/credit-agency-rent
包简介
Library to generate fixed-length credit agency rent reporting files (Equifax Insight, Experian Rental Exchange)
README 文档
README
Generates fixed-length files for submitting rent payment data to credit agencies. Supports both Equifax Consumer Insight and Experian Rental Exchange formats.
Equifax Consumer Insight
Based on File Layout Guide v16. Each file has a batch date (YYYYMM) and produces 518-byte records.
Empty dates in an InsightRow object should be set to 0, which writes 00000000 in the output.
Example
use RateSpecial\CreditAgencyRent\EquifaxInsight\InsightFile;
use RateSpecial\CreditAgencyRent\EquifaxInsight\InsightRow;
use RateSpecial\CreditAgencyRent\EquifaxInsight\Enums\AccountType;
use RateSpecial\CreditAgencyRent\EquifaxInsight\Enums\CompanyType;
use RateSpecial\CreditAgencyRent\EquifaxInsight\Enums\CurrentStatus;
use RateSpecial\CreditAgencyRent\EquifaxInsight\Enums\CurrentBalanceSign;
use RateSpecial\CreditAgencyRent\EquifaxInsight\Enums\Flags;
use RateSpecial\CreditAgencyRent\EquifaxInsight\Enums\RepaymentFrequency;
use RateSpecial\CreditAgencyRent\EquifaxInsight\Enums\SpecialIndicator;
$file = new InsightFile();
$file->portfolioNumber = '99999999';
$file->companyType = CompanyType::BANK_FINANCE;
$file->batchDate = Carbon::now();
$row = new InsightRow();
$row->accountType = AccountType::PROPERTY_RENTAL;
$row->accountNumber = '1234abc';
$row->startDate = 20230418;
$row->endDate = '02/24/2019';
$row->defaultDate = 0;
$row->birthDate = Carbon::now();
$row->creditLimit = 333888;
$row->flags = Flags::DEBT_MANAGEMENT;
$row->transientAssociation = 'T';
$row->specialIndicator = SpecialIndicator::ADDRESS_CHANGE;
$row->currentBalance = 234324;
$row->currentBalanceSign = CurrentBalanceSign::CREDIT;
$row->defaultBalance = 12;
$row->startBalance = 99;
$row->repaymentValue = 13221;
$row->repaymentPeriod = 322;
$row->repaymentFrequency = RepaymentFrequency::WEEKLY;
$row->currentStatus = CurrentStatus::SETTLED;
$row->nameDetails = 'JOHN DOE';
$row->address1 = '123 fake street';
$row->address2 = 'Test Town';
$row->address3 = 'Test County';
$row->postcode = 'TT145TF';
$row->newAccountNumber = 'abc999';
$row->usersOwnData = 'foobar';
$file->addRow($row);
$content = $file->create(); // returns file contents as a string
Experian Rental Exchange
Based on the Rental Exchange File Specification for Open Banking v2.5. Each file has a data month (MMMCCYY) and produces 2100-byte records. Dates use DDMMCCYY format.
Example
use Carbon\Carbon;
use RateSpecial\CreditAgencyRent\ExperianRentalExchange\RentalExchangeFile;
use RateSpecial\CreditAgencyRent\ExperianRentalExchange\RentalExchangeRow;
use RateSpecial\CreditAgencyRent\ExperianRentalExchange\Enums\PaymentStatus;
$file = new RentalExchangeFile();
$file->sourceCode = '12345';
$file->companyName = 'ABC Housing Association';
$file->dataMonth = new Carbon('2023-03-01');
$row = new RentalExchangeRow();
$row->tenancyReference = 'TEN001';
$row->paymentStatus = PaymentStatus::UP_TO_DATE;
$row->tenancyStartDate = new Carbon('2022-06-15');
$row->rentalAmount = 850;
$row->dateOfBirth = new Carbon('1985-12-01');
$row->setName('Mr', 'John', 'Smith', 'David');
$row->setAddress('5 Main Street', 'NG8 1JD', 'Wollaton', 'Nottingham');
$file->addRow($row);
$content = $file->create(); // returns file contents as a string
ratespecial/credit-agency-rent 适用场景与选型建议
ratespecial/credit-agency-rent 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 11 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 06 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 ratespecial/credit-agency-rent 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ratespecial/credit-agency-rent 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 37
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-09