{"id":15017828,"url":"https://github.com/ovesco/nextcloud-api-wrapper","last_synced_at":"2026-03-09T15:33:05.596Z","repository":{"id":41190252,"uuid":"117270583","full_name":"ovesco/nextcloud-api-wrapper","owner":"ovesco","description":"A php wrapper around nextcloud API","archived":false,"fork":false,"pushed_at":"2021-09-29T07:53:12.000Z","size":20,"stargazers_count":16,"open_issues_count":7,"forks_count":21,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T05:45:01.603Z","etag":null,"topics":["api","nextcloud","wrapper"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ovesco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-12T17:41:02.000Z","updated_at":"2025-05-04T09:50:58.000Z","dependencies_parsed_at":"2022-09-03T02:21:58.947Z","dependency_job_id":null,"html_url":"https://github.com/ovesco/nextcloud-api-wrapper","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ovesco/nextcloud-api-wrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovesco%2Fnextcloud-api-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovesco%2Fnextcloud-api-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovesco%2Fnextcloud-api-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovesco%2Fnextcloud-api-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ovesco","download_url":"https://codeload.github.com/ovesco/nextcloud-api-wrapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovesco%2Fnextcloud-api-wrapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30301109,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T14:33:48.460Z","status":"ssl_error","status_checked_at":"2026-03-09T14:33:48.027Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","nextcloud","wrapper"],"created_at":"2024-09-24T19:51:02.426Z","updated_at":"2026-03-09T15:33:05.565Z","avatar_url":"https://github.com/ovesco.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nextcloud API wrapper for PHP\n\nThis is a simple php wrapper around\n- [user provisioning api](https://docs.nextcloud.com/server/12/admin_manual/configuration_user/user_provisioning_api.html)\n- [shares api](https://docs.nextcloud.com/server/12/developer_manual/core/ocs-share-api.html)\n\nwhich allows you to manage your nextcloud instance dynamically. It's meant to \nbe the closest possible to the API, every parameter is available and method names should \nbe understandable enough, dont hesitate to make use of the api documentation \nseeking help on what params are available for each method.\n\nThis library was partially tested with nextcloud 12 and 13. It was developed to fit my needs but I implemented all\nremaining methods. If you find any bug, don't hesitate to open an issue.\n\n##### Warning\n\u003e Nextcloud API uses basic http auth, which means username and password\nare not encoded and travel the internet as clearly as possible. Make sure\nto enforce it using SSL.\n\n## Installation\nInstall it with composer\n```\ncomposer require sysmoh/nextcloud-api-wrapper\n```\n\n## Basic usage\nThe library depends on Guzzle to make requests and Symfony's options resolver.\n```php\n\nuse NextcloudApiWrapper\\Wrapper;\n\n//The base path to Nextcloud api entry point, dont forget the last '/'\n$basePath   = 'http://my.domain.com/nextcloud/ocs/';\n$username   = 'admin';\n$password   = 'potatoes';\n\n$wrapper    = Wrapper::build($basePath, $username, $password);\n\n// https://docs.nextcloud.com/server/12/admin_manual/configuration_user/user_provisioning_api.html\n$userClient                 = $wrapper-\u003egetUsersClient();\n$groupsClient               = $wrapper-\u003egetGroupsClient();\n$appsClient                 = $wrapper-\u003egetAppsClient();\n\n// https://docs.nextcloud.com/server/12/developer_manual/core/ocs-share-api.html\n$sharesClient               = $wrapper-\u003egetSharesClient();\n$federatedCloudSharesClient = $wrapper-\u003egetFederatedCloudSharesClient();\n\n//Instance of \\NextcloudApiWrapper\\NextcloudResponse\n$response   = $userClient-\u003egetUsers();\n$code       = $response-\u003egetStatusCode();   //status code\n$users      = $response-\u003egetData();         //data as array\n$message    = $response-\u003egetStatus();       //status message\n$guzzle     = $response-\u003egetRawResponse();  //Guzzle response\n```\n\n### Making your own requests\nIf you'd like to perform your own requests, you can use the underlying\nnextcloud connection class to perform them.\n```php\n$connection = new \\NextcloudApiWrapper\\Connection($basePath, $username, $password);\n\n//To perform simple requests\n$response   = $connection-\u003erequest('GET', 'cloud/users');\n\n//To perform requests which needs the 'application/x-www-form-urlencoded' header\n//and are not performed in POST\n$response   = $connection-\u003epushDataRequest('PUT', 'cloud/' . $username . '/disable');\n\n//To perform requests which holds some values to submit\n$response   = $connection-\u003esubmitRequest('POST', 'cloud/users', [\n    'userid'    =\u003e 'potatoes',\n    'password'  =\u003e 'tortilla'\n]);\n```\n\n### Licence\n**MIT**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovesco%2Fnextcloud-api-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fovesco%2Fnextcloud-api-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovesco%2Fnextcloud-api-wrapper/lists"}