GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ksafranski/PHileAPI: Simple PHP API framework for working with the filesystem

BranchesTags
Open more actions menu

Latest commit

 

History

19 Commits
19 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
phileapi.php
phileapi.php
 
 

Repository files navigation

#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'

About

Simple PHP API framework for working with the filesystem

Resources

Readme
Activity

Stars

11 stars

Watchers

0 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.