conkal/owncloud-provisioning-api 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

conkal/owncloud-provisioning-api

最新稳定版本:v1.0.4

Composer 安装命令:

composer require conkal/owncloud-provisioning-api

包简介

owncloud provisioning api wrapper

README 文档

README

This is a PHP library for interacting with the OwnCloud Provisioning API. It provides a simple and convenient way to manage users and groups within an OwnCloud instance.

Installation

To install the wrapper, you can use composer by running the following command in your project directory:

composer require conkal/owncloud-provisioning-api

Usage

To use the wrapper, you first need to include the autoload file from composer:

require 'vendor/autoload.php';

Then you can create a new instance of the wrapper:

use Conkal\OwncloudProvisioningApi\Owncloud;

$owncloud = new Owncloud('http://example.com/ocs/v1.php/cloud', 'admin', 'secret');

Once you have an Owncloud instance, you can use it to manage users and groups.

Listing Users

$users = $owncloud->users()->get();

Creating a User

$owncloud->users()->create([
'userid' => 'Frank',
'password' => 'secret',
'email' => 'frank@example.org',
]);

Finding a User

$user = $owncloud->users()->find('user-id');

Update a User

$owncloud->users()->update('user-id', 'email', 'new-email@example.com');

Disable a User

$owncloud->users()->disable('user-id');

Enable a User

$owncloud->users()->enable('user-id');

Add a User to a Group

$owncloud->users()->addToGroup('user-id', 'group-name');

Remove a User from a Group

$owncloud->users()->removeFromGroup('user-id', 'group-name');

Create a Group

$owncloud->groups()->create('group-name');

List Group

$group = $owncloud->groups()->get();

For more information on the available methods, please refer to the code.

统计信息

  • 总下载量: 83
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-02-03