znframework/package-filesystem

ZN Framework Filesystem Package

8.13.0 2024-08-12 11:21 UTC

This package is auto-updated.

Last update: 2024-11-12 11:47:18 UTC


README

ZN Framework Filesystem Package

Follow the steps below for installation and use.

Installation

You only need to run the following code for the installation.

composer require znframework/package-filesystem

Supported Libraries

Folder Library

Click for documentation of your library.

<?php require 'vendor/autoload.php';

ZN\ZN::run();

File::write('example.txt', 'Example');

echo File::read('example.txt');

Folder Library

Click for documentation of your library.

Folder::create('Example');

Folder::delete('Example');

Upload Library

Click for documentation of your library.

use ZN\Request\Post;

if( Post::uploadButton() )
{
    Upload::mimes('image/jpeg', 'image/png')->start('uploadFile', 'upload');

    output( Upload::error() );
}

echo Form::enctype('multipart')->open('form');
echo Form::file('uploadFile');
echo Form::submit('uploadButton', 'Upload');
echo Form::close();