Download the PHP package katalam/laravel-onoffice-adapter without Composer
On this page you can find all versions of the php package katalam/laravel-onoffice-adapter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download katalam/laravel-onoffice-adapter
More information about katalam/laravel-onoffice-adapter
Files in katalam/laravel-onoffice-adapter
Package laravel-onoffice-adapter
Short Description This is my package laravel-onoffice-adapter
License MIT
Homepage https://github.com/katalam/laravel-onoffice-adapter
Informations about the package laravel-onoffice-adapter
onOffice Adapter for Laravel
A fluent query builder for the onOffice API, designed to feel like Eloquent.
Features
- ORM-like Querying - Use familiar Laravel Eloquent-style methods like
where(),select(),orderBy() - Comprehensive Repositories - Access estates, addresses, activities, search criteria, files, and more
- Pagination & Chunking - Handle large datasets with
each(),limit(), and automatic pagination - Middlewares - Insert custom logic before requests for logging, modification, or validation
- Testing Support - Built-in fake system with factories for easy unit testing
- File Management - Upload, chunk, and link files with onOffice
Installation
Add your onOffice API credentials to .env:
For advanced configuration (retry settings, custom headers), publish the config file:
Usage
Basic Queries
Building Queries
Chain methods to filter, sort, and limit results:
Available Methods
| Method | Description |
|---|---|
select($fields) |
Fields to retrieve |
where($field, $op, $value) |
Filter by condition |
whereIn($field, $values) |
Filter by array of values |
whereLike($field, $pattern) |
Pattern matching |
whereBetween($field, $min, $max) |
Range filter |
orderBy($field) |
Sort ascending |
orderByDesc($field) |
Sort descending |
limit($n) |
Max results |
offset($n) |
Skip results |
Large Datasets
Handle large datasets without memory issues using chunked processing:
Available Repositories
| Repository | Description |
|---|---|
EstateRepository |
Real estate properties |
AddressRepository |
Contacts and addresses |
ActivityRepository |
Activity logs |
SearchCriteriaRepository |
Buyer search profiles |
FieldRepository |
Field metadata |
FileRepository |
File uploads and downloads |
FilterRepository |
Saved filters |
RelationRepository |
Record relationships |
SettingRepository |
System settings |
MarketplaceRepository |
Marketplace integration |
LinkRepository |
URL links |
LogRepository |
Log entries |
MacroRepository |
Macros |
LastSeenRepository |
Recently viewed records |
File Uploads
Creating Activities
Middlewares
Inject custom logic before each request:
Debugging
Helpers
Use default fields and clean empty values:
Testing
The package includes a built-in fake system for testing:
Prevent Unstubbed Requests
Multiple Pages
Sequences (Multiple Calls)
See the Testing Documentation for factories, assertions, and advanced patterns.
Development
Changelog
Please see CHANGELOG for more information on what has changed recently.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Bruno Görß
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-onoffice-adapter with dependencies
illuminate/contracts Version ^10.0||^11.0
spatie/laravel-package-tools Version ^1.16