2017 © Pedro Peláez
 

library puja-stdlib

Puja-Stdlib provides basic functions such as File,Folder and more

image

jinnguyen/puja-stdlib

Puja-Stdlib provides basic functions such as File,Folder and more

  • Tuesday, February 21, 2017
  • by jinnguyen
  • Repository
  • 1 Watchers
  • 0 Stars
  • 69 Installations
  • PHP
  • 8 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

puja-stdlib

Puja-Stdlib provides basic functions such as File, Folder and more, (*1)

Puja\Stdlib\File\File

Document document at http://php.net/manual/en/class.splfileobject.php
Addition functions, (*2)

bool Puja\Stdlib\File\File::isUploadedFile() // Tells whether the file was uploaded via HTTP POST
Returns TRUE if the file named by filename was uploaded via HTTP POST. This is useful to help ensure that a malicious user hasn't tried to trick the script into working on files upon which it should not be working--for instance, /etc/passwd.
bool Puja\Stdlib\File\File::moveUploadedFile() // Moves an uploaded file to a new location
This function checks to ensure that the file designated by filename is a valid upload file (meaning that it was uploaded via PHP's HTTP POST upload mechanism). If the file is valid, it will be moved to the filename given by destination.

Puja\Stdlib\File\Info

Document document at http://php.net/manual/en/class.splfileinfo.php
Addition functions, (*3)

array Puja\Stdlib\File\Info::getBasenameWithoutExt($subfix = null)  // Return the file name without ext
string Puja\Stdlib\File\Info::getContent()  // Return the file content

Puja\Stdlib\File\Temp

Document at http://php.net/manual/en/class.spltempfileobject.php, (*4)

Puja\Stdlib\Folder\Folder

Document at http://php.net/manual/en/class.directoryiterator.php, (*5)

Addition functions, (*6)

array Puja\Stdlib\Folder\Folder::getChildFiles()  // Return a list of child files in folder
array Puja\Stdlib\Folder\Folder::getChildFoldes()  // Return a list of sub folders in folder
array Puja\Stdlib\Folder\Folder::getChild()  // Return a list of both child files and sub folders in folder
array Puja\Stdlib\Folder\Folder::getDirectChildFiles()  // Return a list of direct child files in folder
array Puja\Stdlib\Folder\Folder::getDirectChildFoldes()  // Return a list of direct sub folders in folder
array Puja\Stdlib\Folder\Folder::getDirectChild()  // Return a list of both direct child files and direct sub folders in folder

The Versions

21/02 2017

dev-master

9999999-dev

Puja-Stdlib provides basic functions such as File,Folder and more

  Sources   Download

Apache License 2.0

by Jin Nguyen

filesystem file system folder puja standard lib

21/02 2017

v1.2.0

1.2.0.0

Puja-Stdlib provides basic functions such as File,Folder and more

  Sources   Download

Apache License 2.0

by Jin Nguyen

filesystem file system folder puja standard lib

11/02 2017

v1.1.0

1.1.0.0

Puja-Stdlib provides basic functions such as File,Folder and more

  Sources   Download

Apache License 2.0

by Jin Nguyen

filesystem file system folder puja standard lib

18/01 2017

v1.0.0

1.0.0.0

Puja-Stdlib provides basic functions such as File,Folder and more

  Sources   Download

Apache License 2.0

by Jin Nguyen

filesystem file system folder puja standard lib