承接 jinnguyen/puja-stdlib 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jinnguyen/puja-stdlib

Composer 安装命令:

composer require jinnguyen/puja-stdlib

包简介

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

README 文档

README

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

Puja\Stdlib\File\File

Document document at http://php.net/manual/en/class.splfileobject.php
Addition functions
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
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

Puja\Stdlib\Folder\Folder

Document at http://php.net/manual/en/class.directoryiterator.php

Addition functions

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

统计信息

  • 总下载量: 159
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 8
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache
  • 更新时间: 2017-01-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固