GitHub - andreazorzi/php-utilities: 💡 A useful collection of php plugins and functions · GitHub
Skip to content

andreazorzi/php-utilities

Folders and files

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

No releases published

Packages

Contributors

Languages