--- /dev/null
+<?php
+
+namespace Cubist\Util\CommandLine;
+
+use Cubist\Util\CommandLine;
+
+class Owncloud extends CommandLine
+{
+ public function __construct($program = 'occ', $output = null, $error = true, $outputPrefix = null)
+ {
+ parent::__construct($program, $output, $error, $outputPrefix);
+ }
+
+ public function listUsers()
+ {
+ // docker exec nextcloud /var/www/html/occ user:list -i
+ $this->setArg(null, 'user:list');
+ $this->setArg('i');
+ $this->setArg('output', 'json');
+ $this->execute();
+
+ return json_decode($this->output);
+ }
+}
\ No newline at end of file