PHileAPI
Simple PHP API framework for working with the filesystem
Install / Use
/learn @ksafranski/PHileAPIREADME
#PHileAPI
Simple PHP API framework for working with the filesystem. Returns JSON using the JSend structure for messages and data.
##Usage
The API can be called by providing key (GET) an action (GET) and path (GET) parameters
###Index
index returns a JSON formatted array of the files in the path (directory)
Example
[URI]/phileapi.php?key=[KEY]&action=index&path=[PATH]
###Open
open returns the contents of a file provided in the path (file)
Example
[URI]/phileapi.php?key=[KEY]&action=open&path=[PATH]
###Create
create creates a file or directory at the path specified This function requires the type (GET) as either 'file' or 'directory'
Example
[URI]/phileapi.php?key=[KEY]&action=create&path=[PATH]&type=[TYPE]
###Delete
delete removes a file or (recursively) a directory based on provided path
Example
[URI]/phileapi.php?key=[KEY]&action=delete&path=[PATH]
###Modify
modify is used to change name of file/directory or contents of file based on provided path
Example (Rename)
[URI]/phileapi.php?key=[KEY]&action=modify&path=[PATH]&new_name=[NEW_NAME]
Example (Content)
[URI]/phileapi.php?key=[KEY]&action=modify&path=[PATH]
POST = 'content'
###Duplicate
duplicate is used to create a copy of the file or directory in destination
Example
[URI]/phileapi.php?key=[KEY]&action=duplicate&path=[PATH]&destination=[DESTINATION]
###Upload
upload allows posting files to the server at the provided path (directory)
Example
[URI]/phileapi.php?key=[KEY]&action=upload&path=[PATH]
FILES = 'upload'
Related Skills
node-connect
347.6kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.6kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.6kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
