Skip to content

andreazorzi/php-utilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PHP Utilities

A useful collection of php plugins

Plugin


File Uploader

Is a plugin that allows you to upload and save files quickly with php.
On windows servers the calculation of the absolute url of the uploaded file may not be correct.

Example

include("file-uploader.php");

$settings = array(
    "accept" => array(".csv", ".xls", ".xlsx"),
    "nameformat" => "{filename}_{t}-{i}.{ext}",
    "iterator" => 0
);

// Save a single file
$singleFile = FileUpload($_FILES["file"], "file/", $settings);

// Save multiple files
$multipleFile = multipleFileUpload($_FILES["multiple-file"], "file/", $settings);

Url Slug Generator

A simple url slug generator

Example

include("url-slug-generator.php");

$urlslug = generateUrlSlug("Page Title: example"); // page-title-example

About

πŸ’‘ A useful collection of php plugins and functions

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages