PHPackages                             innobrain/onoffice-cli - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. innobrain/onoffice-cli

ActiveLibrary[CLI &amp; Console](/categories/cli)

innobrain/onoffice-cli
======================

Use onOffice from your CLI

v0.0.1(5mo ago)01[2 PRs](https://github.com/innobraingmbh/onoffice-cli/pulls)MITPHPPHP ^8.4CI passing

Since Jan 15Pushed 2mo agoCompare

[ Source](https://github.com/innobraingmbh/onoffice-cli)[ Packagist](https://packagist.org/packages/innobrain/onoffice-cli)[ Docs](https://github.com/innobraingmbh/onoffice-cli)[ GitHub Sponsors](https://github.com/InnoBrain)[ RSS](/packages/innobrain-onoffice-cli/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (13)Versions (5)Used By (0)

onOffice CLI
============

[](#onoffice-cli)

[![Latest Version on Packagist](https://camo.githubusercontent.com/141958633385d5bb71469891d4aef2a9b713186bbf788ee03344ebf807551b1e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e6e6f627261696e2f6f6e6f66666963652d636c692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/innobrain/onoffice-cli)[![GitHub Tests Action Status](https://camo.githubusercontent.com/2d046281eb50aceb3fdc62390f637e7b2ed152d4f42256f881ae5c6a2d88af44/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f696e6e6f627261696e676d62682f6f6e6f66666963652d636c692f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/innobraingmbh/onoffice-cli/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/c59e0b12c90d89003ce9e13fa450865d5e4d85c8f12280910f05f2a09c993d88/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f696e6e6f627261696e676d62682f6f6e6f66666963652d636c692f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/innobraingmbh/onoffice-cli/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/09b17d4f89e9b77e5050aee0b50492748b6a1eb72b0edea7d5040df471feb799/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e6e6f627261696e2f6f6e6f66666963652d636c692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/innobrain/onoffice-cli)

CLI commands for interacting with [onOffice](https://www.onoffice.com/) (real estate CRM) from the command line. Designed for AI agent integration with structured JSON output.

Built on top of [laravel-onoffice-adapter](https://github.com/innobraingmbh/laravel-onoffice-adapter).

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require innobrain/onoffice-cli
```

This package requires [laravel-onoffice-adapter](https://github.com/innobraingmbh/laravel-onoffice-adapter) to be configured with your onOffice API credentials.

You can publish the config file with:

```
php artisan vendor:publish --tag="onoffice-cli-config"
```

This is the contents of the published config file:

```
return [
    'entities' => [
        'estate' => Innobrain\OnOfficeAdapter\Facades\EstateRepository::class,
        'address' => Innobrain\OnOfficeAdapter\Facades\AddressRepository::class,
        // ... more entities
    ],

    'field_modules' => [
        'estate' => 'estate',
        'address' => 'address',
        'activity' => 'agentslog',
        'searchcriteria' => 'searchcriteria',
    ],
];
```

Usage
-----

[](#usage)

### Search Records

[](#search-records)

```
# Search all estates
php artisan onoffice:search estate --json

# Search with filters
php artisan onoffice:search estate --where="status=1" --where="kaufpreis80"``=`Greater than or equal`--where="kaufpreis>=100000"``like`Pattern match (% wildcard)`--where="Ort like %Berlin%"``not like`Negative pattern match`--where="Name not like %Test%"`Multiple `--where` clauses are combined with AND logic.

Output Format
-------------

[](#output-format)

With `--json` flag, output is structured for easy parsing:

```
{
  "data": [
    {"id": "123", "elements": {"Ort": "Berlin", "kaufpreis": "450000"}}
  ],
  "meta": {
    "total": 42,
    "limit": 10,
    "offset": 0
  }
}
```

Without `--json`, output is displayed as a human-readable table.

Development
-----------

[](#development)

This is a Laravel package. To run commands locally during development:

```
# Copy and configure credentials
cp testbench.yaml.dist testbench.yaml
# Edit testbench.yaml with your ON_OFFICE_TOKEN and ON_OFFICE_SECRET

# Run commands via testbench
./vendor/bin/testbench onoffice:search estate --limit=5 --json
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Konstantin Auffinger](https://github.com/kauffinger)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance79

Regular maintenance activity

Popularity1

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

168d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/beb1d357716423ec46cf7e3ff0827574b0e17a095bc2cd7b218bf5955056be9b?d=identicon)[innobrain](/maintainers/innobrain)

---

Top Contributors

[![kauffinger](https://avatars.githubusercontent.com/u/62616071?v=4)](https://github.com/kauffinger "kauffinger (23 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

laravelInnobrainonoffice-cli

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/innobrain-onoffice-cli/health.svg)

```
[![Health](https://phpackages.com/badges/innobrain-onoffice-cli/health.svg)](https://phpackages.com/packages/innobrain-onoffice-cli)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M99](/packages/dedoc-scramble)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.3k3](/packages/defstudio-telegraph)[spatie/laravel-passkeys

Use passkeys in your Laravel app

471890.7k38](/packages/spatie-laravel-passkeys)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
