PHPackages                             owncloud/ocis-php-sdk - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. owncloud/ocis-php-sdk

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

owncloud/ocis-php-sdk
=====================

v1.3.0(7mo ago)47151[4 issues](https://github.com/owncloud/ocis-php-sdk/issues)[6 PRs](https://github.com/owncloud/ocis-php-sdk/pulls)Apache-2.0PHPPHP ^8.1CI failing

Since Dec 22Pushed 2w ago12 watchersCompare

[ Source](https://github.com/owncloud/ocis-php-sdk)[ Packagist](https://packagist.org/packages/owncloud/ocis-php-sdk)[ RSS](/packages/owncloud-ocis-php-sdk/feed)WikiDiscussions main Synced 2w ago

READMEChangelogDependencies (6)Versions (22)Used By (0)

oCIS PHP SDK
============

[](#ocis-php-sdk)

[![License](https://camo.githubusercontent.com/34a775a87a857c0e8ff7dd62e6dc0a56040f5d204a897a6f953dcefddfdaf7df/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4170616368652d2d322e302d626c75652e737667)](LICENSE) [![ownCloud OSPO](https://camo.githubusercontent.com/0d8322f08f58bc70b68c60a64b4d2e6c1edf9dffef2f52e671134491453da84f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4f53504f2d6f776e436c6f75642d626c7565)](https://kiteworks.com/opensource) [![Docker Hub](https://camo.githubusercontent.com/a502213f4f421346357094410b3b27fd54e980e0879e897a188ef5c722ee0733/68747470733a2f2f696d672e736869656c64732e696f2f646f636b65722f70756c6c732f6f776e636c6f7564)](https://hub.docker.com/r/owncloud/ocis)

A PHP SDK for interacting with ownCloud Infinite Scale. It wraps the Libre Graph API and provides high-level PHP classes for managing drives, files, users, groups, shares, notifications, and application roles on an oCIS instance, with support for both OIDC and education-specific access tokens.

Getting Started
---------------

[](#getting-started)

Follow the steps below to install and use the oCIS PHP SDK.

### Installation via Composer

[](#installation-via-composer)

```
composer config minimum-stability dev
composer config prefer-stable true
composer require owncloud/ocis-php-sdk
```

### Usage

[](#usage)

```
use Owncloud\OcisPhpSdk\Ocis;

$ocis = new Ocis('https://example.ocis.com', $accessToken);
$drives = $ocis->getMyDrives();
```

### Run Tests

[](#run-tests)

```
make test-php-unit
make test-php-style
make test-php-phpstan
```

Documentation
-------------

[](#documentation)

- [Rendered API Documentation](https://owncloud.dev/ocis-php-sdk/)
- [oCIS Documentation](https://doc.owncloud.com/ocis/next/)

Part of ownCloud Infinite Scale
-------------------------------

[](#part-of-owncloud-infinite-scale)

This SDK is the recommended way for PHP applications to integrate with [oCIS](https://github.com/owncloud/ocis). It is used by the [Moodle oCIS plugin](https://github.com/owncloud/moodle-repository_ocis) and depends on the [libre-graph-api-php](https://github.com/owncloud/libre-graph-api-php) client.

This component is part of the [oCIS Docker image](https://hub.docker.com/r/owncloud/ocis).

Community &amp; Support
-----------------------

[](#community--support)

**[Star](https://github.com/owncloud/ocis-php-sdk)** this repo and **Watch** for release notifications!

- [ownCloud Website](https://owncloud.com)
- [Community Discussions](https://github.com/orgs/owncloud/discussions)
- [Matrix Chat](https://app.element.io/#/room/#owncloud:matrix.org)
- [Documentation](https://doc.owncloud.com)
- [Enterprise Support](https://owncloud.com/contact-us/)
- [OSPO Home](https://kiteworks.com/opensource)

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

[](#contributing)

We welcome contributions! Please read the [Contributing Guidelines](CONTRIBUTING.md)and our [Code of Conduct](CODE_OF_CONDUCT.md) before getting started.

### Workflow

[](#workflow)

- **Rebase Early, Rebase Often!** We use a rebase workflow. Always rebase on the target branch before submitting a PR.
- **Dependabot**: Automated dependency updates are managed via Dependabot. Review and merge dependency PRs promptly.
- **Signed Commits**: All commits **must** be PGP/GPG signed. See [GitHub's signing guide](https://docs.github.com/en/authentication/managing-commit-signature-verification).
- **DCO Sign-off**: Every commit must carry a `Signed-off-by` line: ```
    git commit -s -S -m "your commit message"

    ```
- **GitHub Actions Policy**: Workflows may only use actions that are (a) owned by `owncloud`, (b) created by GitHub (`actions/*`), or (c) verified in the GitHub Marketplace.

Security
--------

[](#security)

**Do not open a public GitHub issue for security vulnerabilities.**

Report vulnerabilities at **** -- see [SECURITY.md](SECURITY.md).

Bug bounty: [YesWeHack ownCloud Program](https://yeswehack.com/programs/owncloud-bug-bounty-program)

License
-------

[](#license)

This project is licensed under the [Apache-2.0](LICENSE).

About the ownCloud OSPO
-----------------------

[](#about-the-owncloud-ospo)

The [Kiteworks Open Source Program Office](https://kiteworks.com/opensource), operating under the [ownCloud](https://owncloud.com) brand, launched on May 5, 2026, to steward the open source ecosystem around ownCloud's products. The OSPO ensures transparent governance, license compliance, community health, and sustainable collaboration between the open source community and [Kiteworks](https://www.kiteworks.com), which acquired ownCloud in 2023.

- **OSPO Home**:
- **GitHub**:
- **ownCloud**:

For questions about the OSPO or licensing, contact .

> **License status:** This repository is already licensed under Apache-2.0 -- the OSPO target license. No migration is required.

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance62

Regular maintenance activity

Popularity22

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Every ~82 days

Recently: every ~131 days

Total

10

Last Release

222d ago

### Community

Maintainers

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

---

Top Contributors

[![individual-it](https://avatars.githubusercontent.com/u/2425577?v=4)](https://github.com/individual-it "individual-it (233 commits)")[![phil-davis](https://avatars.githubusercontent.com/u/1535615?v=4)](https://github.com/phil-davis "phil-davis (118 commits)")[![amrita-shrestha](https://avatars.githubusercontent.com/u/54478846?v=4)](https://github.com/amrita-shrestha "amrita-shrestha (66 commits)")[![nirajacharya2](https://avatars.githubusercontent.com/u/122071597?v=4)](https://github.com/nirajacharya2 "nirajacharya2 (48 commits)")[![S-Panta](https://avatars.githubusercontent.com/u/64484313?v=4)](https://github.com/S-Panta "S-Panta (36 commits)")[![Ashim-Stha](https://avatars.githubusercontent.com/u/97830124?v=4)](https://github.com/Ashim-Stha "Ashim-Stha (18 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![PrajwolAmatya](https://avatars.githubusercontent.com/u/83579989?v=4)](https://github.com/PrajwolAmatya "PrajwolAmatya (3 commits)")[![dj4oC](https://avatars.githubusercontent.com/u/115982880?v=4)](https://github.com/dj4oC "dj4oC (2 commits)")[![DeepDiver1975](https://avatars.githubusercontent.com/u/1005065?v=4)](https://github.com/DeepDiver1975 "DeepDiver1975 (2 commits)")[![micbar](https://avatars.githubusercontent.com/u/4378513?v=4)](https://github.com/micbar "micbar (1 commits)")[![mmattel](https://avatars.githubusercontent.com/u/3321281?v=4)](https://github.com/mmattel "mmattel (1 commits)")[![saw-jan](https://avatars.githubusercontent.com/u/52366632?v=4)](https://github.com/saw-jan "saw-jan (1 commits)")[![owncloud-settings-bot[bot]](https://avatars.githubusercontent.com/in/3971109?v=4)](https://github.com/owncloud-settings-bot[bot] "owncloud-settings-bot[bot] (1 commits)")

---

Tags

file-syncinfinite-scaleocisowncloudphpsdkself-hosted

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/owncloud-ocis-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/owncloud-ocis-php-sdk/health.svg)](https://phpackages.com/packages/owncloud-ocis-php-sdk)
```

###  Alternatives

[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.9M535](/packages/pimcore-pimcore)[leantime/leantime

Open source project management system for non-project managers. Simple like Trello, powerful like Jira. Built with neurodiversity in mind.

11.3k4.0k](/packages/leantime-leantime)[spatie/period

Complex period comparisons

1.7k4.7M14](/packages/spatie-period)[florianv/exchanger

PHP exchange rate provider layer for currency conversion: 30+ services, chain fallback, and caching.

1865.1M20](/packages/florianv-exchanger)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9626.1k68](/packages/open-dxp-opendxp)

PHPackages © 2026

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