Download the PHP package rentercheck/rentercheck-php without Composer
On this page you can find all versions of the php package rentercheck/rentercheck-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rentercheck/rentercheck-php
More information about rentercheck/rentercheck-php
Files in rentercheck/rentercheck-php
Package rentercheck-php
Short Description Official RenterCheck client for PHP and Laravel: send bookings, get renter verdicts and scores, report incidents, and show the RenterCheck badge.
License MIT
Homepage https://www.rentercheck.ph/developers/sdks
Informations about the package rentercheck-php
rentercheck/rentercheck-php
Official PHP and Laravel client for RenterCheck, the renter history and renter score network for rental businesses in the Philippines.
Send every booking, get the renter's verdict and 300-850 score back on the same call, report incidents, and render the RenterCheck badge. Needs PHP 8.1+ with curl and nothing else, so it works in Laravel, plain PHP, WordPress, Symfony, and CodeIgniter.
Docs: https://www.rentercheck.ph/developers/sdks
Install
Get a key at https://www.rentercheck.ph/partners and set RENTERCHECK_API_KEY in your environment. Use an rc_test_ key while you build: the phone numbers 0999 000 0001 to 0999 000 0005 return every verdict.
Laravel
The package registers itself: a RenterCheck facade, config/rentercheck.php, and the <x-rentercheck-badge> Blade component.
Optional: php artisan vendor:publish --tag=rentercheck-config. You can also inject RenterCheck\RenterCheck from the container.
Plain PHP
Methods
| Method | What it does |
|---|---|
bookings->save($booking) |
Create or update a booking and get the renter's result |
bookings->update($bookingId, $changes) |
Change status, dates, or amount |
bookings->get($bookingId) |
Saved booking with a fresh renter result |
bookings->import($bookings, $onBatch) |
Backfill any number of past bookings, 200 per call |
bookings->addDocument($bookingId, $path, $kind, $idType) |
Attach the renter's ID photo, driver's license, selfie, or proof of address (admins only) |
renters->check($renter) |
Check a renter before booking; saves new renters |
renters->lookup($renter) |
Read-only check |
incidents->report($report) |
Report an incident and open the renter's response window |
incidents->addEvidence($id, $path, $type) |
Attach a photo or PDF (10 MB max) |
incidents->get($id) |
Follow a case |
ping() |
Check the key and mode |
Results are arrays shaped like the JSON responses and never contain renter personal data. Rate limits, server errors, and network failures are retried twice with backoff (max_retries option).
Development
MIT License
All versions of rentercheck-php with dependencies
ext-curl Version *
ext-json Version *