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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-onoffice-adapter

onOffice Adapter for Laravel

Latest Version on Packagist Laravel Compatibility GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

A query builder for the onOffice API with an Eloquent-style interface.

View Full Documentation

Features

Installation

Add your onOffice API credentials to .env:

Requests go to https://api.onoffice.de/api/stable/api.php. Set ON_OFFICE_BASE_URL to use another API version or a proxy.

To change retry settings or headers, publish the config file:

The package keeps one HTTP connection to the onOffice API open per PHP process and reuses it for every request, which skips the TCP and TLS handshake on all but the first call. Long-lived processes such as queue workers and Octane benefit most. If a stale connection is closed by the server, the request fails with a connection error and the retry settings above take over. Set reuse_connection to false in the config to open a fresh connection per request instead.

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

each() processes one page per callback:

A failed page throws OnOfficeException. No partial results. Chunks already passed to the callback are not rolled back.

Available Repositories

Repository Description
EstateRepository Real estate properties
AddressRepository Contacts and addresses
ActivityRepository Activity logs
ActionRepository Action kind types
AppointmentRepository Calendar appointments
TaskRepository Tasks
UserRepository onOffice users
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

save() checks the size onOffice reports after the last block. If a block arrived twice or not at all, it starts over once from a new temporary file, then throws IncompleteUploadException instead of linking a corrupt file.

Creating Activities

Middlewares

Run code before each request:

Read-Only Mode

Refuses every mutating action (create, modify, delete and do) before it is sent and throws a ReadOnlyViolationException. Reads are unaffected.

Any layer can turn it on, none can turn it off.

Debugging

Helpers

Default field lists and empty-value cleanup:

Testing

Fake responses in tests:

Prevent Unstubbed Requests

Multiple Pages

Sequences (Multiple Calls)

See Testing for factories and assertions.

Development

Changelog

See UPGRADE.

Security Vulnerabilities

See the security policy.

Credits

License

MIT. See LICENSE.


All versions of laravel-onoffice-adapter with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^10.0||^11.0
spatie/laravel-package-tools Version ^1.16
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package katalam/laravel-onoffice-adapter contains the following files

Loading the files please wait ...