Download the PHP package osw3/php-cloud-manager without Composer
On this page you can find all versions of the php package osw3/php-cloud-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download osw3/php-cloud-manager
More information about osw3/php-cloud-manager
Files in osw3/php-cloud-manager
Package php-cloud-manager
Short Description Provides cloud connection and file manipulation tools.
License MIT
Homepage https://osw3.net
Informations about the package php-cloud-manager
Cloud Manager
Provides cloud connection and file manipulation tools.
How to install
Supported services
- Dropbox
- FTP
How to use
Create new connection
Prepare the DSN
Client instance
Don't auto connect
DSN Infos
-
dsn(): DsnServiceBridge to DsnService.
-
getDriver(): ?string -
getHost(): ?string -
getUser(): ?string -
getPass(): ?string -
getAuth(): ?intGet the Auth mode
-
getToken(): ?int -
getPort(): ?int -
get(): ?stringGet the DSN string
Driver Statement
-
connect(): boolProceed to driver connection and return the connection state
-
disconnect(): boolProceed to disconnection and return the connection status
-
isConnected(): boolreturn
truewhen the driver is connected
Temp directory
-
setTempDirectory(string $directory): staticSet the local server Temp directory for file manipulation.
-
getTempDirectory(): stringGet the local server Temp directory for file manipulation.
Navigation
-
location(): stringReturn the current location (like PWD)
-
navigateTo(string $folder): boolSet the pointer to a specific folder.
-
parent(): boolSet the pointer to a parent folder.
-
root(): boolSet the pointer to the root of the driver.
Entry infos
-
infos(?string $path=null, ?string $part=null): array|stringRetrieve the entry infos. Return an array if $part is null.
-
isFolder(string $path): boolTrue if $path is a folder type.
-
isDirectory(string $path): boolAn alias of isFolder
-
isFile(string $path): boolTrue if $path is a file type.
-
isLink(string $path): boolTrue if $path is a link type.
-
isBlock(string $path): boolTrue if $path is a block type
-
isCharacter(string $path): boolTrue if $path is a character type.
-
isSocket(string $path): boolTrue if $path is a socket type.
-
isPipe(string $path): boolTrue if $path is a pipe type.
Permissions
-
permissions(string $path, ?int $code=null): string|boolPermissions getter and setter. Set permission to path if
$codeis notnull. Get permission code if$codeisnull -
setPermission(string $path, int $code): boolSet permissions code to a $path
-
getPermission(string $path): stringRead permissions code from a $path
Folder API
-
browse(?string $directory=null): arrayReturn the content of a directory, like the Unix PWD command. Return the current pointer location content if the
$directoryparameter isnull. -
createFolder(string $directory, int $permissions=0700, bool $navigateTo = true): boolCreate a directory and set the pointer into the new location id
$navigateToistrue. -
deleteFolder(?string $directory, bool $recursive=true): boolDelete a directory and its contains.
-
duplicateFolder(string $source, string $destination): boolDuplicate a directory on the Client
-
copyFolder(string $source, string $destination): boolAlias for
duplicateFolder. -
moveFolder(string $source, string $destination, bool $override=false): boolMove a folder (cut + paste)
-
uploadFolder(string $source, string $destination, bool $override=false): boolSend a directory from your server to the remote Client
-
downloadFolder(string $source, string $destination, bool $override=false): boolGet a directory from a Client to your server
Files API
-
createFile(string $filename, string $content="", bool $binary=false): boolCreate a file from Stream to the Client.
-
deleteFile(?string $filename): boolDelete a file from a Client.
-
duplicateFile(string $source, string $destination): boolDuplicate a file on the Client
-
copyFile(string $source, string $destination): boolAlias for
duplicateFile. -
moveFile(string $source, string $destination, bool $override=false): boolMove a file
-
uploadFile(string $source, string $destination, bool $override=false): boolSend a file from your server to the remote Client
-
downloadFile(string $source, string $destination, bool $override=false): boolGet a file from a Client to your server
Folder & Files API (Hybrid aliases of previous API)
-
delete(?string $path, bool $recursive=true): bool;Delete a directory or a file
-
duplicate(string $source, string $destination): bool;Duplicate a directory or a file
-
copy(string $source, string $destination): bool;Alias of
duplicate -
move(string $source, string $destination): bool;Duplicate a directory or a file and delete the
$source. -
rename(string $source, string $destination): bool;Alias of
move -
upload(string $source, string $destination, bool $override=false): bool;Send a directory or a file from your server to the Client
-
download(string $source, string $destination, bool $override=false): bool;Get a directory or a file from the Client to your server