xdrm-framework/notice/filedriver/1.0.md

1.0 KiB

module: filedriver
version: 1.0
requires: null

Overview

1. Introduction

The filedriver package allows create, read and write files easily and with optimization (cf. SplFileObject).

To make it easier and generic, all methods are static.

Setup

  1. Include the autoloader
<?php

	require_once '../autoloader.php';

	...
  1. Load the FileDriver class
<?php

	...

	use \filedriver\core\FileDriver;

Usage

FileDriver

create - creates or empty a file
```php ```php ```php ```php